Skip to content

Commit 25b9a3c

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: tlb: include <asm/tlb.h> for missing prototype
Add the prototype for check_tlb_sanity() to <asm/tlb.h> and use that header to prevent a build warning: arch/xtensa/mm/tlb.c:273:6: warning: no previous prototype for 'check_tlb_sanity' [-Wmissing-prototypes] 273 | void check_tlb_sanity(void) Signed-off-by: Randy Dunlap <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 2e413b1 commit 25b9a3c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/xtensa/include/asm/tlb.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818

1919
#define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte)
2020

21+
void check_tlb_sanity(void);
22+
2123
#endif /* _XTENSA_TLB_H */

arch/xtensa/mm/tlb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/mm.h>
1818
#include <asm/processor.h>
1919
#include <asm/mmu_context.h>
20+
#include <asm/tlb.h>
2021
#include <asm/tlbflush.h>
2122
#include <asm/cacheflush.h>
2223

0 commit comments

Comments
 (0)