Skip to contentSkip to conversation

Silence sparc32 warnings on missing syscalls

PATCH Applied Martin Habets 2 participants 2 messages Dec 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Silence sparc32 warnings on missing syscalls

Silence sparc32 warnings on missing syscalls, these won't be added. This patch is based on this mail:
http://www.mail-archive.com/[email protected]/msg02571.html

Martin

---
Index: 2.6/include/asm-sparc/unistd.h
=================================--- 2.6.orig/include/asm-sparc/unistd.h 2007-12-13 18:09:39.000000000 +0000
+++ 2.6/include/asm-sparc/unistd.h 2007-12-13 18:12:09.000000000 +0000
@@ -333,6 +333,15 @@

#define NR_SYSCALLS 315

+/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
+ * it never had the plain ones and there is no value to adding those
+ * old versions into the syscall table.
+ */
+#define __IGNORE_setresuid
+#define __IGNORE_getresuid
+#define __IGNORE_setresgid
+#define __IGNORE_getresgid
+
#ifdef __KERNEL__
#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR