Skip to contentSkip to conversation

x86/syscalls/32: ignore arch_prctl for other architectures

PATCH In review Arnd Bergmann 3 participants 3 messages Mar 23, 2017 – Mar 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/syscalls/32: ignore arch_prctl for other architectures

sys_arch_prctl is only provided on x86, and there is no reason to add it elsewhere. However, including it on the 32-bit syscall table caused a warning for most configurations on non-x86:

:1328:2: warning: #warning syscall arch_prctl not implemented [-Wcpp]

This adds an exception to the syscall table checking script.

Fixes 79170fda313e ("x86/syscalls/32: Wire up arch_prctl on x86-32")
---
 scripts/checksyscalls.sh | 1 +
 1 file changed, 1 insertion(+)

Thomas, can you apply this on top of the x86 patch?

scripts/checksyscalls.sh +1 -0
index f7ad07128811..0cce56da3706 100755
@@ -148,6 +148,7 @@ cat << EOF
 #define __IGNORE_sysfs
 #define __IGNORE_uselib
 #define __IGNORE__sysctl
+#define __IGNORE_arch_prctl
 
 /* ... including the "new" 32-bit uid syscalls */
 #define __IGNORE_lchown32
Signature · 1 line
2.9.0
#1 lore raw
Quoted 29 lines · Arnd Bergmann

sys_arch_prctl is only provided on x86, and there is no reason to add it elsewhere. However, including it on the 32-bit syscall table caused a warning for most configurations on non-x86:

:1328:2: warning: #warning syscall arch_prctl not implemented [-Wcpp]

This adds an exception to the syscall table checking script.

Fixes 79170fda313e ("x86/syscalls/32: Wire up arch_prctl on x86-32")
---
 scripts/checksyscalls.sh | 1 +
 1 file changed, 1 insertion(+)

Thomas, can you apply this on top of the x86 patch?

scripts/checksyscalls.sh +1 -1
index f7ad07128811..0cce56da3706 100755
@@ -148,6 +148,7 @@ cat << EOF
 #define __IGNORE_sysfs
 #define __IGNORE_uselib
 #define __IGNORE__sysctl
+#define __IGNORE_arch_prctl
 
 /* ... including the "new" 32-bit uid syscalls */
 #define __IGNORE_lchown32
--
Quoted 2 lines

2.9.0

Ah, nice. lgtm.

- Kyle

#2 lore raw

[tip:x86/process] x86/syscalls/32: Ignore arch_prctl for other architectures

In reply to Arnd Bergmann
x86/syscalls/32: Ignore arch_prctl for other architectures
Commit-ID:  f3e4559781bf0c393364baa6b772233088a711db
Gitweb:     http://git.kernel.org/tip/f3e4559781bf0c393364baa6b772233088a711db
Author:     Arnd Bergmann <[email protected]>
AuthorDate: Thu, 23 Mar 2017 16:18:51 +0100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Fri, 24 Mar 2017 14:13:55 +0100

x86/syscalls/32: Ignore arch_prctl for other architectures

sys_arch_prctl is only provided on x86, and there is no reason to add it elsewhere. However, including it on the 32-bit syscall table caused a warning for most configurations on non-x86:

:1328:2: warning: #warning syscall arch_prctl not implemented [-Wcpp]

This adds an exception to the syscall table checking script.

Fixes 79170fda313e ("x86/syscalls/32: Wire up arch_prctl on x86-32")
Cc Kyle Huey <[email protected]>
---
 scripts/checksyscalls.sh | 1 +
 1 file changed, 1 insertion(+)
scripts/checksyscalls.sh +1 -0
index 2c9082b..116b773 100755
@@ -148,6 +148,7 @@ cat << EOF
 #define __IGNORE_sysfs
 #define __IGNORE_uselib
 #define __IGNORE__sysctl
+#define __IGNORE_arch_prctl
 
 /* ... including the "new" 32-bit uid syscalls */
 #define __IGNORE_lchown32