Fixes for syscall warnings

Signed-off-by: Atle Nissestad <[EMAIL PROTECTED]>

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

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to