mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix cond_syscall macro on Alpha
@ 2003-04-12 16:00 Måns Rullgård
  0 siblings, 0 replies; only message in thread
From: Måns Rullgård @ 2003-04-12 16:00 UTC (permalink / raw)
  To: linux-kernel


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-12 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-12 16:00 [PATCH] Fix cond_syscall macro on Alpha Måns Rullgård

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®