Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230920052139.10570-13-rdunlap@infradead.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

authored by

Randy Dunlap and committed by
Max Filippov
25b9a3ca 2e413b1e

+3
+2
arch/xtensa/include/asm/tlb.h
··· 18 18 19 19 #define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte) 20 20 21 + void check_tlb_sanity(void); 22 + 21 23 #endif /* _XTENSA_TLB_H */
+1
arch/xtensa/mm/tlb.c
··· 17 17 #include <linux/mm.h> 18 18 #include <asm/processor.h> 19 19 #include <asm/mmu_context.h> 20 + #include <asm/tlb.h> 20 21 #include <asm/tlbflush.h> 21 22 #include <asm/cacheflush.h> 22 23