]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Move and rename func_descr_t
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 15 Feb 2022 12:40:57 +0000 (13:40 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Feb 2022 12:25:10 +0000 (23:25 +1100)
commitdcca399788e62352468565cc8e80baa96510e6cf
tree3a3733b4b4051ba52b25fcc47f9f03db4cb9f621
parent9cffa0b06670a4bc0f6b5bd608fb1f54bdbfcc4d
powerpc: Move and rename func_descr_t

There are three architectures with function descriptors, try to
have common names for the address they contain in order to
refactor some functions into generic functions later.

powerpc has 'entry'
ia64 has 'ip'
parisc has 'addr'

Vote for 'addr' and update 'func_descr_t' accordingly.

Move it in asm/elf.h to have it at the same place on all
three architectures, remove the typedef which hides its real
type, and change it to a smoother name 'struct func_desc'.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/529b2ba1d001e8f628ef0d30e8044c9b3d0a4921.1644928018.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/code-patching.h
arch/powerpc/include/asm/elf.h
arch/powerpc/include/asm/types.h
arch/powerpc/kernel/signal_64.c