Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Marc Zyngier <mzyngier@freesurf.fr>
To: axp-list@redhat.com
Subject: Re: linux-2.5.66
Date: 26 Mar 2003 11:29:40 +0100	[thread overview]
Message-ID: <wrpsmtamne3.fsf@hina.wild-wind.fr.eu.org> (raw)
In-Reply-To: <200303261005.h2QA5nh07757@enterprise2.newlogic.at>

>>>>> "Niki" == Niki Waibel <niki.waibel@newlogic.com> writes:

Niki> include/linux/socket.h:
Niki>         prototypes sys_sendmsg() and sys_recvmsg()
Niki>         this is now defined somewhere else -- so i commented
Niki>         that 2 prototypes to continue compiling.

Could you instead try the following patch ?

Thanks,

        M.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1017  -> 1.1018 
#	include/asm-alpha/unistd.h	1.17    -> 1.18   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/03/25	maz@hina.wild-wind.fr.eu.org	1.1018
# Fix alpha cond_syscall to be immune to type-checking.
# --------------------------------------------
#
diff -Nru a/include/asm-alpha/unistd.h b/include/asm-alpha/unistd.h
--- a/include/asm-alpha/unistd.h	Tue Mar 25 14:56:07 2003
+++ b/include/asm-alpha/unistd.h	Tue Mar 25 14:56:07 2003
@@ -612,6 +612,12 @@
  * 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
  */
+#if 0
+/* This doesn't work if there's a function prototype for NAME visible,
+   because the argument types probably won't match.  */
 #define cond_syscall(x) asmlinkage long x(void) __attribute__((weak,alias("sys_ni_syscall")));
+#else
+#define cond_syscall(x) asm (".weak\t" #x ";\n\t" #x "=sys_ni_syscall");
+#endif
 
 #endif /* _ALPHA_UNISTD_H */

-- 
Places change, faces change. Life is so very strange.




  parent reply	other threads:[~2003-03-26 10:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-26 10:05 linux-2.5.66 Niki Waibel
2003-03-26 10:11 ` linux-2.5.66 Falk Hueffner
2003-03-26 10:29 ` Marc Zyngier [this message]
2003-03-27  9:24   ` linux-2.5.66 Niki Waibel
read-only archive

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