diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-11-30 19:41:02 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-12-01 16:20:18 +1100 |
commit | dd5ac03e09554b7504f64990cfbcec884e3ec430 (patch) | |
tree | 142b164e3ed0ebc6aba7002e729b3c587c8e7ba2 /arch/powerpc/mm/dump_linuxpagetables.c | |
parent | 6dff5b67054e17c91bd630bcdda17cfca5aa4215 (diff) | |
download | linux-dd5ac03e09554b7504f64990cfbcec884e3ec430.tar.bz2 |
powerpc/mm: Fix page table dump build on non-Book3S
In the recent commit 1515ab932156 ("powerpc/mm: Dump hash table") we
added code to dump the hage page table. Currently this can be selected
to build on any platform. However it breaks the build if we're building
for a non-Book3S platform, because none of the hash page table related
defines and so on exist. So restrict it to building only on Book3S.
Similarly in commit 8eb07b187000 ("powerpc/mm: Dump linux pagetables")
we added code to dump the Linux page tables, which uses some constants
which are only defined on Book3S - so guard those with an #ifdef.
Fixes: 1515ab932156 ("powerpc/mm: Dump hash table")
Fixes: 8eb07b187000 ("powerpc/mm: Dump linux pagetables")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/dump_linuxpagetables.c')
-rw-r--r-- | arch/powerpc/mm/dump_linuxpagetables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/dump_linuxpagetables.c b/arch/powerpc/mm/dump_linuxpagetables.c index d242bc79ae64..49abaf4dc8e3 100644 --- a/arch/powerpc/mm/dump_linuxpagetables.c +++ b/arch/powerpc/mm/dump_linuxpagetables.c @@ -159,6 +159,7 @@ static const struct flag_info flag_array[] = { .set = "no cache", .clear = " ", }, { +#ifdef CONFIG_PPC_BOOK3S_64 .mask = H_PAGE_BUSY, .val = H_PAGE_BUSY, .set = "busy", @@ -183,6 +184,7 @@ static const struct flag_info flag_array[] = { .val = H_PAGE_F_SECOND, .set = "f_second", }, { +#endif .mask = _PAGE_SPECIAL, .val = _PAGE_SPECIAL, .set = "special", |