Skip to contentSkip to conversation

linux-next: build failure after merge of the akpm-current tree

PATCH Stephen Rothwell 3 participants 3 messages May 25, 2015 – May 26, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

__NR_syscalls (364) is not one more than the last syscall (364)

Caused by commit d7766613717b ("userfaultfd: activate syscall"). (BTW, I notice that this patch was not cc'd to any ppc maintainers :-()

I have added this fix patch for today:

From: Stephen Rothwell <[email protected]>
Date: Mon, 25 May 2015 21:13:40 +1000
Subject: [PATCH] userfaultfd: activate syscall fix

---
 arch/powerpc/include/asm/unistd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/unistd.h +1 -1
index f4f8b667d75b..4a055b6c2a64 100644
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define __NR_syscalls		364
+#define __NR_syscalls		365
 
 #define __NR__exit __NR_exit
 #define NR_syscalls	__NR_syscalls
Signature · 5 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw

Hello,

Quoted 11 lines · Stephen Rothwell

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

__NR_syscalls (364) is not one more than the last syscall (364)

Caused by commit d7766613717b ("userfaultfd: activate syscall"). (BTW, I notice that this patch was not cc'd to any ppc maintainers :-()

I have added this fix patch for today:

So another option is to just drop the arch/powerpc part of the patch from -mm. It's up to you, there's no arch dependent code in the syscall though and the config option is not specific to x86 either. I enabled the syscall on powerpc in my tree to facilitate the testing so the patchset included that change to arch/powerpc, but it would be ok to enable the syscall only later upstream, after it has been tested.

Thanks,
Andrea

Quoted 29 lines

From: Stephen Rothwell <[email protected]>
Date: Mon, 25 May 2015 21:13:40 +1000
Subject: [PATCH] userfaultfd: activate syscall fix

---
 arch/powerpc/include/asm/unistd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/unistd.h +1 -1
index f4f8b667d75b..4a055b6c2a64 100644
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define __NR_syscalls		364
+#define __NR_syscalls		365
 
 #define __NR__exit __NR_exit
 #define NR_syscalls	__NR_syscalls
Signature · 5 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
#2 lore raw
Quoted 11 lines · On Mon, 25 May 2015 16:03:15 +0200 Andrea Arcangeli <[email protected]> wrote:
Quoted 10 lines · Stephen Rothwell

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

__NR_syscalls (364) is not one more than the last syscall (364)

Caused by commit d7766613717b ("userfaultfd: activate syscall"). (BTW, I notice that this patch was not cc'd to any ppc maintainers :-()

Quoted 8 lines
Quoted 1 line

I have added this fix patch for today:

So another option is to just drop the arch/powerpc part of the patch from -mm. It's up to you, there's no arch dependent code in the syscall though and the config option is not specific to x86 either. I enabled the syscall on powerpc in my tree to facilitate the testing so the patchset included that change to arch/powerpc, but it would be ok to enable the syscall only later upstream, after it has been tested.

Yes, it would be prudent to avoid enabling it until the feature has been appropriately runtime tested on powerpc. How's that tools/testing/selftests/ test harness coming along ;)