Fix cond_syscall macro on Alpha
PATCH 1/1 Fix cond_syscall macro on Alpha
This patch fixes the cond_syscall macro that was broken in 2.5.67. The patch is against vanilla 2.5.67.
asm-alpha/unistd.h renamed from asm-alpha/unistd.h~ +1 -1
@@ -612,6 +612,6 @@* What we want is __attribute__((weak,alias("sys_ni_syscall"))), * but it doesn't work on all toolchains, so we just do it by hand */ -#define cond_syscall (x) asmlinkage long x(void) __attribute__((weak,alias("sys_ni_syscall"))); +#define cond_syscall (x) asm("\t.weak\t" #x "\n" #x " = sys_ni_syscall");#endif /* _ALPHA_UNISTD_H */
Signature · 2 lines
Måns Rullgård [email protected]