2010-08-19 16:10:49

by Geert Uytterhoeven

[permalink] [raw]
Subject: [PATCH] m68k,m68knommu: Wire up fanotify_init, fanotify_mark, and prlimit64

Signed-off-by: Geert Uytterhoeven <[email protected]>
---
arch/m68k/include/asm/unistd.h | 5 ++++-
arch/m68k/kernel/entry.S | 3 +++
arch/m68knommu/kernel/syscalltable.S | 3 +++
3 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h
index 60b15d0..b43b36b 100644
--- a/arch/m68k/include/asm/unistd.h
+++ b/arch/m68k/include/asm/unistd.h
@@ -340,10 +340,13 @@
#define __NR_set_thread_area 334
#define __NR_atomic_cmpxchg_32 335
#define __NR_atomic_barrier 336
+#define __NR_fanotify_init 337
+#define __NR_fanotify_mark 338
+#define __NR_prlimit64 339

#ifdef __KERNEL__

-#define NR_syscalls 337
+#define NR_syscalls 340

#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S
index 2391bdf..6360c43 100644
--- a/arch/m68k/kernel/entry.S
+++ b/arch/m68k/kernel/entry.S
@@ -765,4 +765,7 @@ sys_call_table:
.long sys_set_thread_area
.long sys_atomic_cmpxchg_32 /* 335 */
.long sys_atomic_barrier
+ .long sys_fanotify_init
+ .long sys_fanotify_mark
+ .long sys_prlimit64

diff --git a/arch/m68knommu/kernel/syscalltable.S b/arch/m68knommu/kernel/syscalltable.S
index b30b3eb..79b1ed1 100644
--- a/arch/m68knommu/kernel/syscalltable.S
+++ b/arch/m68knommu/kernel/syscalltable.S
@@ -355,6 +355,9 @@ ENTRY(sys_call_table)
.long sys_set_thread_area
.long sys_atomic_cmpxchg_32 /* 335 */
.long sys_atomic_barrier
+ .long sys_fanotify_init
+ .long sys_fanotify_mark
+ .long sys_prlimit64

.rept NR_syscalls-(.-sys_call_table)/4
.long sys_ni_syscall
--
1.7.0.4

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


2010-08-20 03:43:05

by Greg Ungerer

[permalink] [raw]
Subject: Re: [uClinux-dev] [PATCH] m68k, m68knommu: Wire up fanotify_init, fanotify_mark, and prlimit64

Geert Uytterhoeven wrote:
> Signed-off-by: Geert Uytterhoeven <[email protected]>

Acked-by: Greg Ungerer <[email protected]>


> ---
> arch/m68k/include/asm/unistd.h | 5 ++++-
> arch/m68k/kernel/entry.S | 3 +++
> arch/m68knommu/kernel/syscalltable.S | 3 +++
> 3 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h
> index 60b15d0..b43b36b 100644
> --- a/arch/m68k/include/asm/unistd.h
> +++ b/arch/m68k/include/asm/unistd.h
> @@ -340,10 +340,13 @@
> #define __NR_set_thread_area 334
> #define __NR_atomic_cmpxchg_32 335
> #define __NR_atomic_barrier 336
> +#define __NR_fanotify_init 337
> +#define __NR_fanotify_mark 338
> +#define __NR_prlimit64 339
>
> #ifdef __KERNEL__
>
> -#define NR_syscalls 337
> +#define NR_syscalls 340
>
> #define __ARCH_WANT_IPC_PARSE_VERSION
> #define __ARCH_WANT_OLD_READDIR
> diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S
> index 2391bdf..6360c43 100644
> --- a/arch/m68k/kernel/entry.S
> +++ b/arch/m68k/kernel/entry.S
> @@ -765,4 +765,7 @@ sys_call_table:
> .long sys_set_thread_area
> .long sys_atomic_cmpxchg_32 /* 335 */
> .long sys_atomic_barrier
> + .long sys_fanotify_init
> + .long sys_fanotify_mark
> + .long sys_prlimit64
>
> diff --git a/arch/m68knommu/kernel/syscalltable.S b/arch/m68knommu/kernel/syscalltable.S
> index b30b3eb..79b1ed1 100644
> --- a/arch/m68knommu/kernel/syscalltable.S
> +++ b/arch/m68knommu/kernel/syscalltable.S
> @@ -355,6 +355,9 @@ ENTRY(sys_call_table)
> .long sys_set_thread_area
> .long sys_atomic_cmpxchg_32 /* 335 */
> .long sys_atomic_barrier
> + .long sys_fanotify_init
> + .long sys_fanotify_mark
> + .long sys_prlimit64
>
> .rept NR_syscalls-(.-sys_call_table)/4
> .long sys_ni_syscall


--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: [email protected]
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com