diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-02-06 11:47:26 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-02-09 01:10:15 +1100 |
commit | fd659e8f2c6d1e1e96fd5bdb515518801cd02012 (patch) | |
tree | 409286e0746647456ad86677f3eaee1176b81230 /arch/powerpc/kvm/book3s_emulate.c | |
parent | 8524e2e76441fc615a3b5c1415823e051cc79eae (diff) | |
download | linux-fd659e8f2c6d1e1e96fd5bdb515518801cd02012.tar.bz2 |
powerpc/32s: Change mfsrin() into a static inline function
mfsrin() is a macro.
Change in into an inline function to avoid conflicts in KVM
and make it more evolutive.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/72c7b9879e2e2e6f5c27dadda6486386c2b50f23.1612612022.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kvm/book3s_emulate.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_emulate.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/book3s_emulate.c b/arch/powerpc/kvm/book3s_emulate.c index b08cc15f31c7..fdb57be71aa6 100644 --- a/arch/powerpc/kvm/book3s_emulate.c +++ b/arch/powerpc/kvm/book3s_emulate.c @@ -61,10 +61,6 @@ #define SPRN_GQR6 918 #define SPRN_GQR7 919 -/* Book3S_32 defines mfsrin(v) - but that messes up our abstract - * function pointers, so let's just disable the define. */ -#undef mfsrin - enum priv_level { PRIV_PROBLEM = 0, PRIV_SUPER = 1, |