mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/syscalls/32: ignore arch_prctl for other architectures
@ 2017-03-23 15:18 Arnd Bergmann
  2017-03-23 18:59 ` Kyle Huey
  2017-03-24 13:19 ` [tip:x86/process] x86/syscalls/32: Ignore " tip-bot for Arnd Bergmann
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2017-03-23 15:18 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Kyle Huey, Arnd Bergmann, linux-kernel

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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 scripts/checksyscalls.sh | 1 +
 1 file changed, 1 insertion(+)

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

diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
index f7ad07128811..0cce56da3706 100755
--- a/scripts/checksyscalls.sh
+++ b/scripts/checksyscalls.sh
@@ -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
-- 
2.9.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/syscalls/32: ignore arch_prctl for other architectures
  2017-03-23 15:18 [PATCH] x86/syscalls/32: ignore arch_prctl for other architectures Arnd Bergmann
@ 2017-03-23 18:59 ` Kyle Huey
  2017-03-24 13:19 ` [tip:x86/process] x86/syscalls/32: Ignore " tip-bot for Arnd Bergmann
  1 sibling, 0 replies; 3+ messages in thread
From: Kyle Huey @ 2017-03-23 18:59 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Thomas Gleixner, Kyle Huey, open list

On Thu, Mar 23, 2017 at 8:18 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> 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")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  scripts/checksyscalls.sh | 1 +
>  1 file changed, 1 insertion(+)
>
> Thomas, can you apply this on top of the x86 patch?
>
> diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
> index f7ad07128811..0cce56da3706 100755
> --- a/scripts/checksyscalls.sh
> +++ b/scripts/checksyscalls.sh
> @@ -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
> --
> 2.9.0
>

Ah, nice. lgtm.

- Kyle

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:x86/process] x86/syscalls/32: Ignore arch_prctl for other architectures
  2017-03-23 15:18 [PATCH] x86/syscalls/32: ignore arch_prctl for other architectures Arnd Bergmann
  2017-03-23 18:59 ` Kyle Huey
@ 2017-03-24 13:19 ` tip-bot for Arnd Bergmann
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Arnd Bergmann @ 2017-03-24 13:19 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: mingo, khuey, hpa, linux-kernel, tglx, arnd

Commit-ID:  f3e4559781bf0c393364baa6b772233088a711db
Gitweb:     http://git.kernel.org/tip/f3e4559781bf0c393364baa6b772233088a711db
Author:     Arnd Bergmann <arnd@arndb.de>
AuthorDate: Thu, 23 Mar 2017 16:18:51 +0100
Committer:  Thomas Gleixner <tglx@linutronix.de>
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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Kyle Huey <khuey@kylehuey.com>
Link: http://lkml.kernel.org/r/20170323151904.706286-1-arnd@arndb.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 scripts/checksyscalls.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
index 2c9082b..116b773 100755
--- a/scripts/checksyscalls.sh
+++ b/scripts/checksyscalls.sh
@@ -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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-24 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-23 15:18 [PATCH] x86/syscalls/32: ignore arch_prctl for other architectures Arnd Bergmann
2017-03-23 18:59 ` Kyle Huey
2017-03-24 13:19 ` [tip:x86/process] x86/syscalls/32: Ignore " tip-bot for Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®