Skip to contentSkip to conversation

powerpc: Include <asm/pte-walk.h> header file to fix a warning

PATCH New Mathieu Malaterre 1 participant 1 message May 15, 2019 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Include <asm/pte-walk.h> header file to fix a warning

Make sure to include <asm/pte-walk.h> to provide the following prototype:
__find_linux_pte.

Remove the following warning treated as error (W=1):

arch/powerpc/mm/pgtable.c:316:8: error: no previous prototype for '__find_linux_pte' [-Werror=missing-prototypes]

Fixes 0caed4de502c ("powerpc/mm: move __find_linux_pte() out of hugetlbpage.c")
Cc Christophe Leroy <[email protected]>
---
 arch/powerpc/mm/pgtable.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/mm/pgtable.c +1 -0
index db4a6253df92..2aa042193ace 100644
@@ -31,6 +31,7 @@
 #include <asm/tlbflush.h>
 #include <asm/tlb.h>
 #include <asm/hugetlb.h>
+#include <asm/pte-walk.h>
 
 static inline int is_exec_fault(void)
 {
Signature · 1 line
2.20.1