2011-05-16 03:47:38

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: manual merge of the namespace tree with Linus' tree

Hi Eric,

Today's linux-next merge of the namespace tree got a conflict in
arch/alpha/include/asm/unistd.h arch/alpha/kernel/systbls.S between
commit 90b57f35164a ("alpha: Wire up syscalls new to 2.6.39") from Linus'
tree and commit e975ee91dcc1 ("ns: Wire up the setns system call") from
the namespace tree.

I fixed it up (see below) and can carry the fix as necessary.
--
Cheers,
Stephen Rothwell [email protected]

diff --cc arch/alpha/include/asm/unistd.h
index b183416,664383d..0000000
--- a/arch/alpha/include/asm/unistd.h
+++ b/arch/alpha/include/asm/unistd.h
@@@ -452,14 -452,11 +452,15 @@@
#define __NR_fanotify_init 494
#define __NR_fanotify_mark 495
#define __NR_prlimit64 496
-#define __NR_setns 497
+#define __NR_name_to_handle_at 497
+#define __NR_open_by_handle_at 498
+#define __NR_clock_adjtime 499
+#define __NR_syncfs 500
++#define __NR_setns 501

#ifdef __KERNEL__

- #define NR_SYSCALLS 501
-#define NR_SYSCALLS 498
++#define NR_SYSCALLS 502

#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
diff --cc arch/alpha/kernel/systbls.S
index 15f999d,4663fd5..0000000
--- a/arch/alpha/kernel/systbls.S
+++ b/arch/alpha/kernel/systbls.S
@@@ -513,12 -513,9 +513,13 @@@ sys_call_table
.quad sys_rt_tgsigqueueinfo
.quad sys_perf_event_open
.quad sys_fanotify_init
- .quad sys_fanotify_mark /* 495 */
+ .quad sys_fanotify_mark /* 495 */
.quad sys_prlimit64
+ .quad sys_name_to_handle_at
+ .quad sys_open_by_handle_at
+ .quad sys_clock_adjtime
+ .quad sys_syncfs /* 500 */
+ .quad sys_setns

.size sys_call_table, . - sys_call_table
.type sys_call_table, @object


2011-05-16 04:00:39

by Matt Turner

[permalink] [raw]
Subject: Re: linux-next: manual merge of the namespace tree with Linus' tree

On Sun, May 15, 2011 at 11:47 PM, Stephen Rothwell <[email protected]> wrote:
> Hi Eric,
>
> Today's linux-next merge of the namespace tree got a conflict in
> arch/alpha/include/asm/unistd.h arch/alpha/kernel/systbls.S between
> commit 90b57f35164a ("alpha: Wire up syscalls new to 2.6.39") from Linus'
> tree and commit e975ee91dcc1 ("ns: Wire up the setns system call") from
> the namespace tree.
>
> I fixed it up (see below) and can carry the fix as necessary.
> --
> Cheers,
> Stephen Rothwell ? ? ? ? ? ? ? ? ? [email protected]
>
> diff --cc arch/alpha/include/asm/unistd.h
> index b183416,664383d..0000000
> --- a/arch/alpha/include/asm/unistd.h
> +++ b/arch/alpha/include/asm/unistd.h
> @@@ -452,14 -452,11 +452,15 @@@
> ?#define __NR_fanotify_init ? ? ? ? ? ?494
> ?#define __NR_fanotify_mark ? ? ? ? ? ?495
> ?#define __NR_prlimit64 ? ? ? ? ? ? ? ? ? ? ? ?496
> ?-#define __NR_setns ? ? ? ? ? ? ? ? ? ? ?497
> ?+#define __NR_name_to_handle_at ? ? ? ? ? ? ? ?497
> ?+#define __NR_open_by_handle_at ? ? ? ? ? ? ? ?498
> ?+#define __NR_clock_adjtime ? ? ? ? ? ?499
> ?+#define __NR_syncfs ? ? ? ? ? ? ? ? ? 500
> ++#define __NR_setns ? ? ? ? ? ? ? ? ? ?501
>
> ?#ifdef __KERNEL__
>
> - #define NR_SYSCALLS ? ? ? ? ? ? ? ? ? 501
> ?-#define NR_SYSCALLS ? ? ? ? ? ? ? ? ? 498
> ++#define NR_SYSCALLS ? ? ? ? ? ? ? ? ? 502
>
> ?#define __ARCH_WANT_IPC_PARSE_VERSION
> ?#define __ARCH_WANT_OLD_READDIR
> diff --cc arch/alpha/kernel/systbls.S
> index 15f999d,4663fd5..0000000
> --- a/arch/alpha/kernel/systbls.S
> +++ b/arch/alpha/kernel/systbls.S
> @@@ -513,12 -513,9 +513,13 @@@ sys_call_table
> ? ? ? ?.quad sys_rt_tgsigqueueinfo
> ? ? ? ?.quad sys_perf_event_open
> ? ? ? ?.quad sys_fanotify_init
> ?- ? ? ?.quad sys_fanotify_mark ? ? ? ? ? ? ? ? ? ? ? ? /* 495 */
> ?+ ? ? ?.quad sys_fanotify_mark ? ? ? ? ? ? ? ? /* 495 */
> ? ? ? ?.quad sys_prlimit64
> ?+ ? ? ?.quad sys_name_to_handle_at
> ?+ ? ? ?.quad sys_open_by_handle_at
> ?+ ? ? ?.quad sys_clock_adjtime
> ?+ ? ? ?.quad sys_syncfs ? ? ? ? ? ? ? ? ? ? ? ?/* 500 */
> + ? ? ? .quad sys_setns
>
> ? ? ? ?.size sys_call_table, . - sys_call_table
> ? ? ? ?.type sys_call_table, @object

Thanks for handling this, Stephen.

I don't know what the best way to avoid this is. Sometimes (and
_sometimes_ is the problem) new syscalls are added through another
tree. Other times, they're added to only x86 and amd64 or something
and leave us to find out later.

So, should all syscall additions go through the respective arch trees,
or should syscall additions make sure to include all architectures?

Thanks,
Matt

2011-05-16 04:44:09

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: manual merge of the namespace tree with Linus' tree

Hi Matt,

On Mon, 16 May 2011 00:00:15 -0400 Matt Turner <[email protected]> wrote:
>
> I don't know what the best way to avoid this is. Sometimes (and
> _sometimes_ is the problem) new syscalls are added through another
> tree. Other times, they're added to only x86 and amd64 or something
> and leave us to find out later.
>
> So, should all syscall additions go through the respective arch trees,
> or should syscall additions make sure to include all architectures?

Any and all of the above should be fine. Mostly, the "only add x86"
model is followed and the other arches catch up later.

Conflicts like these are easy to handle and Linus does not mind fixing
them up as they occur, so for really simple syscalls, adding them to all
architectures should be fine.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (876.00 B)
(No filename) (490.00 B)
Download all attachments