powerpc: Move PPC_HA() PPC_HI() and PPC_LO() to ppc-opcode.h
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 3 May 2019 06:40:15 +0000 (06:40 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 5 Jul 2019 14:29:50 +0000 (00:29 +1000)
commit7f9c929a7ff203eae60b4225bb6824c3eb31796c
tree074abff01828d66e8b39a7d9592a10c5967235d5
parent2fb0a2c989837c976b68233496bbaefb47cd3d6f
powerpc: Move PPC_HA() PPC_HI() and PPC_LO() to ppc-opcode.h

PPC_HA() PPC_HI() and PPC_LO() macros are nice macros. Move them
from module64.c to ppc-opcode.h in order to use them in other places.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Clean up formatting in new code, drop duplicates in ftrace.c]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/kernel/module_64.c
arch/powerpc/kernel/trace/ftrace.c