]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61f9152043b2ef5e6b8e23ae536a7c06e3eda3d7
tree5be07736829467698d8a7f4ed691c8d9b0487db1
parentcd7399846a414c2c5e75935e37c544b930340c78
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