]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic: Define 'func_desc_t' to commonly describe function descriptors
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 15 Feb 2022 12:41:03 +0000 (13:41 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Feb 2022 12:25:11 +0000 (23:25 +1100)
commit3511cacb950e2ccc868d84c42bf8f90384c5be01
treefd7e71052ea5e331b861e1c6a9c232302cfe643e
parentad2d83ed64f7e6c7edbf4cc24e1d309da479a7c3
asm-generic: Define 'func_desc_t' to commonly describe function descriptors

We have three architectures using function descriptors, each with its
own type and name.

Add a common typedef that can be used in generic code.

Also add a stub typedef for architecture without function descriptors,
to avoid a forest of #ifdefs.

It replaces the similar 'func_desc_t' previously defined in
arch/powerpc/kernel/module_64.c

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f1f91b142b3c1082bdc1586ce71c9bac1e75213c.1644928018.git.christophe.leroy@csgroup.eu
arch/ia64/include/asm/sections.h
arch/parisc/include/asm/sections.h
arch/powerpc/include/asm/sections.h
arch/powerpc/kernel/module_64.c
include/asm-generic/sections.h