]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Remove asmlinkage from syscall handler definitions
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:41 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 13:00:14 +0000 (23:00 +1000)
commit546b528dd6d6b199015d493656d72d8a48f0ca91
treefb15fdfb4f1f24a31b5e4cb885df43a5104ff314
parenta75f828315aeb4f0603e7896651d0fb7c4a18529
powerpc: Remove asmlinkage from syscall handler definitions

The asmlinkage macro has no special meaning in powerpc, and prior to
this patch is used sporadically on some syscall handler definitions. On
architectures that do not define asmlinkage, it resolves to extern "C"
for C++ compilers and a nop otherwise. The current invocations of
asmlinkage provide far from complete support for C++ toolchains, and so
the macro serves no purpose in powerpc.

Remove all invocations of asmlinkage in arch/powerpc. These incidentally
only occur in syscall definitions and prototypes.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-2-rmclure@linux.ibm.com
arch/powerpc/include/asm/syscalls.h
arch/powerpc/kernel/sys_ppc32.c