powerpc: Only include kup-radix.h for 64-bit Book3S
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 12:43:53 +0000 (23:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 12:47:20 +0000 (23:47 +1100)
commit178d52c6e89c38d0553b0ac8b99927b11eb995b0
tree5be07736829467698d8a7f4ed691c8d9b0487db1
parent9a32a7e78bd0cd9a9b6332cbdc345ee5ffd0c5de
powerpc: Only include kup-radix.h for 64-bit Book3S

In kup.h we currently include kup-radix.h for all 64-bit builds, which
includes Book3S and Book3E. The latter doesn't make sense, Book3E
never uses the Radix MMU.

This has worked up until now, but almost by accident, and the recent
uaccess flush changes introduced a build breakage on Book3E because of
the bad structure of the code.

So disentangle things so that we only use kup-radix.h for Book3S. This
requires some more stubs in kup.h and fixing an include in
syscall_64.c.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/kup-radix.h
arch/powerpc/include/asm/kup.h
arch/powerpc/kernel/syscall_64.c