]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Fix ps3 build error due to tlbiel_all()
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Jan 2018 04:20:12 +0000 (15:20 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Jan 2018 11:36:45 +0000 (22:36 +1100)
commit918a727992124fff382e392cbe0ab9ec32b335b0
treee2fd1faf947c944baae7e439d4b8f02e75fd21b7
parent5f42c12949e54a30b50222568825cc7b5bf2cfd8
powerpc/64s: Fix ps3 build error due to tlbiel_all()

The recent changes to TLB handling broke the PS3 build:

  arch/powerpc/include/asm/book3s/64/tlbflush.h:30: undefined reference to `.hash__tlbiel_all'

Fix it by adding an fallback version of tlbiel_all() for non-native
builds. It should never be called, due to checks in callers so it
calls BUG(). We should probably clean it up further but this will
suffice for now.

Fixes: 27aaa66b87ae ("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.h