[uClinux-dev] [PATCH 7/9] nios2: Updates for kernel 2.6.23

Atle Nissestad atle at nissestad.no
Wed Nov 21 05:51:15 EST 2007


Fixes for syscall warnings

Signed-off-by: Atle Nissestad <atle at nissestad.no>

diff --git a/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S b/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S
index 3507e24..297c468 100644
--- a/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S
+++ b/linux-2.6.x/arch/nios2nommu/kernel/syscalltable.S
@@ -355,8 +355,9 @@ ENTRY(sys_call_table)
 	.long sys_eventfd
 	.long sys_pread64
 	.long sys_pwrite64		/* 321 */
+	.long sys_fallocate
 
-	.rept NR_syscalls - 322
+	.rept NR_syscalls - 323
 		.long sys_ni_syscall
 	.endr
 
diff --git a/linux-2.6.x/include/asm-nios2nommu/unistd.h b/linux-2.6.x/include/asm-nios2nommu/unistd.h
index 43cd165..fe66f49 100644
--- a/linux-2.6.x/include/asm-nios2nommu/unistd.h
+++ b/linux-2.6.x/include/asm-nios2nommu/unistd.h
@@ -355,9 +355,14 @@
 #define __NR_eventfd		319
 #define __NR_pread64		320
 #define __NR_pwrite64		321
+#define __NR_fallocate		322
+
+#define NR_syscalls		323
+
+/* Not relevant on no-mmu */
+#define __IGNORE_msync
 
 #ifdef __KERNEL__
-#define NR_syscalls		322
 
 #define __ARCH_WANT_IPC_PARSE_VERSION
 #define __ARCH_WANT_OLD_READDIR
-- 
1.5.3.2



More information about the uClinux-dev mailing list