Message ID | 20190515121008.3992-1-malat@debian.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | powerpc: Include <asm/pte-walk.h> header file to fix a warning | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch next (8150a153c013aa2dd1ffae43370b89ac1347a7fb) |
snowpatch_ozlabs/build-ppc64le | success | Build succeeded and removed 1 sparse warnings |
snowpatch_ozlabs/build-ppc64be | success | Build succeeded and removed 1 sparse warnings |
snowpatch_ozlabs/build-ppc64e | success | Build succeeded and removed 1 sparse warnings |
snowpatch_ozlabs/build-pmac32 | success | Build succeeded and removed 1 sparse warnings |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 7 lines checked |
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c index db4a6253df92..2aa042193ace 100644 --- a/arch/powerpc/mm/pgtable.c +++ b/arch/powerpc/mm/pgtable.c @@ -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) {
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 <christophe.leroy@c-s.fr> Signed-off-by: Mathieu Malaterre <malat@debian.org> --- arch/powerpc/mm/pgtable.c | 1 + 1 file changed, 1 insertion(+)