[PATCH] Fix cond_syscall macro on Alpha

Måns Rullgård (mru@users.sourceforge.net)
12 Apr 2003 18:00:22 +0200


This patch fixes the cond_syscall macro that was broken in 2.5.67.
The patch is against vanilla 2.5.67.

--- include/asm-alpha/unistd.h~ Mon Apr 7 19:31:08 2003
+++ include/asm-alpha/unistd.h Sat Apr 12 17:55:03 2003
@@ -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 */

-- 
Måns Rullgård
mru@users.sf.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/