[PATCH v4 01/20] powerpc: Remove asmlinkage from syscall handler definitions
Nicholas Piggin
npiggin at gmail.com
Mon Sep 12 18:20:40 AEST 2022
On Wed Aug 24, 2022 at 12:05 PM AEST, Rohan McLure wrote:
> 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 at linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin at gmail.com>
More information about the Linuxppc-dev
mailing list