]> 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)
commit039ef3795011f952b862c17bbcd38dd0ebf77120
tree5be07736829467698d8a7f4ed691c8d9b0487db1
parent7a4361e6ba141063561264f54ddce8f2fd32bc8a
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