powerpc/mm/radix: Fix build error when RADIX_MMU=n
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Jan 2018 09:37:21 +0000 (20:37 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Jan 2018 09:41:30 +0000 (20:41 +1100)
commit015eb1b89e959c9349f0a01803fb8ed1ced36f09
tree999a8d4d585617dcfd3637100bbf9d883369c4d1
parent516c32f64f144721ca05b881737e4425932827c5
powerpc/mm/radix: Fix build error when RADIX_MMU=n

The recent TLB flush rework broke the build when the Radix MMU is
disabled at build time, eg:

  (.text+0x264): undefined reference to `.radix__tlbiel_all'

We could add an empty version, but if we ever called it by accident
that would indicate a bad bug, so add a stub that just WARNs if we do.

Fixes: d4748276ae14 ("powerpc/64s: Improve local TLB flush for boot and MCE on POWER9")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/tlbflush-radix.h