Re: [PATCH] Use gcc alias instead of assembler aliases for syscalls

From: Andrew Morton
Date: Tue Aug 06 2013 - 02:01:20 EST

On Mon, 5 Aug 2013 15:09:35 -0700 Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> Use standard gcc __attribute__((alias(foo))) to define
> the syscall aliases instead of custom assembler macros.
> This is far cleaner, and also fixes my LTO kernel build.

I wonder what gcc version this was added in. Seems fairly longstanding.

> { \
> return C_SYSC##name(__MAP(x,__SC_DELOUSE,__VA_ARGS__)); \
> } \
> - SYSCALL_ALIAS(compat_sys##name, compat_SyS##name); \

I think we can remove the SYSCALL_ALIAS definitions?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at