OSDN Git Service

powerpc/mm: Fix linux page tables build with some configs
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Nov 2018 01:59:16 +0000 (12:59 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Nov 2018 00:03:36 +0000 (11:03 +1100)
For some configs the build fails with:

  arch/powerpc/mm/dump_linuxpagetables.c: In function 'populate_markers':
  arch/powerpc/mm/dump_linuxpagetables.c:306:39: error: 'PKMAP_BASE' undeclared (first use in this function)
  arch/powerpc/mm/dump_linuxpagetables.c:314:50: error: 'LAST_PKMAP' undeclared (first use in this function)

These come from highmem.h, including that fixes the build.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/dump_linuxpagetables.c

index 2b74f8a..6aa4166 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/hugetlb.h>
 #include <linux/io.h>
 #include <linux/mm.h>
+#include <linux/highmem.h>
 #include <linux/sched.h>
 #include <linux/seq_file.h>
 #include <asm/fixmap.h>