All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] x86: Syscall table cleanups
@ 2021-05-24 18:17 Brian Gerst
  2021-05-24 18:17 ` [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers Brian Gerst
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Brian Gerst @ 2021-05-24 18:17 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Andy Lutomirski, Borislav Petkov, Thomas Gleixner,
	Peter Zijlstra, Masahiro Yamada, Brian Gerst

Here are a few patches following up to the syscall table generation
patches that are now in the -tip tree.

Brian Gerst (3):
  x86/uml/syscalls: Remove array index from syscall initializers
  x86/syscalls: Remove -Wno-override-init for syscall tables
  x86/syscalls: Don't sdjust CFLAGS for syscall tables

 arch/x86/entry/Makefile         | 10 ----------
 arch/x86/um/sys_call_table_32.c |  2 +-
 arch/x86/um/sys_call_table_64.c |  2 +-
 3 files changed, 2 insertions(+), 12 deletions(-)

-- 
2.31.1


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

* [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers
  2021-05-24 18:17 [PATCH 0/3] x86: Syscall table cleanups Brian Gerst
@ 2021-05-24 18:17 ` Brian Gerst
  2021-05-25 11:22   ` Masahiro Yamada
  2021-05-25 15:00   ` [tip: x86/entry] " tip-bot2 for Brian Gerst
  2021-05-24 18:17 ` [PATCH 2/3] x86/syscalls: Remove -Wno-override-init for syscall tables Brian Gerst
  2021-05-24 18:17 ` [PATCH 3/3] x86/syscalls: Don't sdjust CFLAGS " Brian Gerst
  2 siblings, 2 replies; 10+ messages in thread
From: Brian Gerst @ 2021-05-24 18:17 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Andy Lutomirski, Borislav Petkov, Thomas Gleixner,
	Peter Zijlstra, Masahiro Yamada, Brian Gerst

Commit 44fe4895f47c ("Stop filling syscall arrays with *_sys_ni_syscall")
removed the index from the initializers for native x86 syscall tables, but
missed the UML syscall tables.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
---
 arch/x86/um/sys_call_table_32.c | 2 +-
 arch/x86/um/sys_call_table_64.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c
index f8323104e353..0575decb5e54 100644
--- a/arch/x86/um/sys_call_table_32.c
+++ b/arch/x86/um/sys_call_table_32.c
@@ -31,7 +31,7 @@
 #include <asm/syscalls_32.h>
 
 #undef __SYSCALL
-#define __SYSCALL(nr, sym) [ nr ] = sym,
+#define __SYSCALL(nr, sym) sym,
 
 extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
 
diff --git a/arch/x86/um/sys_call_table_64.c b/arch/x86/um/sys_call_table_64.c
index 5ed665dc785f..95725b5a41ac 100644
--- a/arch/x86/um/sys_call_table_64.c
+++ b/arch/x86/um/sys_call_table_64.c
@@ -39,7 +39,7 @@
 #include <asm/syscalls_64.h>
 
 #undef __SYSCALL
-#define __SYSCALL(nr, sym) [ nr ] = sym,
+#define __SYSCALL(nr, sym) sym,
 
 extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
 
-- 
2.31.1


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

* [PATCH 2/3] x86/syscalls: Remove -Wno-override-init for syscall tables
  2021-05-24 18:17 [PATCH 0/3] x86: Syscall table cleanups Brian Gerst
  2021-05-24 18:17 ` [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers Brian Gerst
@ 2021-05-24 18:17 ` Brian Gerst
  2021-05-25 12:01   ` Masahiro Yamada
  2021-05-25 15:00   ` [tip: x86/entry] " tip-bot2 for Brian Gerst
  2021-05-24 18:17 ` [PATCH 3/3] x86/syscalls: Don't sdjust CFLAGS " Brian Gerst
  2 siblings, 2 replies; 10+ messages in thread
From: Brian Gerst @ 2021-05-24 18:17 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Andy Lutomirski, Borislav Petkov, Thomas Gleixner,
	Peter Zijlstra, Masahiro Yamada, Brian Gerst

Commit 44fe4895f47c ("Stop filling syscall arrays with *_sys_ni_syscall")
removes the need for -Wno-override-init, since the table is now filled
sequentially instead of overriding a default value.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
---
 arch/x86/entry/Makefile | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile
index 08bf95dbc911..94d2843ce80c 100644
--- a/arch/x86/entry/Makefile
+++ b/arch/x86/entry/Makefile
@@ -17,10 +17,6 @@ CFLAGS_syscall_64.o		+= -fno-stack-protector
 CFLAGS_syscall_32.o		+= -fno-stack-protector
 CFLAGS_syscall_x32.o		+= -fno-stack-protector
 
-CFLAGS_syscall_64.o		+= $(call cc-option,-Wno-override-init,)
-CFLAGS_syscall_32.o		+= $(call cc-option,-Wno-override-init,)
-CFLAGS_syscall_x32.o		+= $(call cc-option,-Wno-override-init,)
-
 obj-y				:= entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
 obj-y				+= common.o
 
-- 
2.31.1


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

* [PATCH 3/3] x86/syscalls: Don't sdjust CFLAGS for syscall tables
  2021-05-24 18:17 [PATCH 0/3] x86: Syscall table cleanups Brian Gerst
  2021-05-24 18:17 ` [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers Brian Gerst
  2021-05-24 18:17 ` [PATCH 2/3] x86/syscalls: Remove -Wno-override-init for syscall tables Brian Gerst
@ 2021-05-24 18:17 ` Brian Gerst
  2021-05-25 12:01   ` Masahiro Yamada
  2021-05-25 15:00   ` [tip: x86/entry] x86/syscalls: Don't adjust " tip-bot2 for Brian Gerst
  2 siblings, 2 replies; 10+ messages in thread
From: Brian Gerst @ 2021-05-24 18:17 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Andy Lutomirski, Borislav Petkov, Thomas Gleixner,
	Peter Zijlstra, Masahiro Yamada, Brian Gerst

The syscall_*.c files only contain data (the syscall tables).  There
is no need to adjust CFLAGS for tracing and stack protector since they
contain no code.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
---
 arch/x86/entry/Makefile | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile
index 94d2843ce80c..7fec5dcf6438 100644
--- a/arch/x86/entry/Makefile
+++ b/arch/x86/entry/Makefile
@@ -8,14 +8,8 @@ UBSAN_SANITIZE := n
 KCOV_INSTRUMENT := n
 
 CFLAGS_REMOVE_common.o		= $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_64.o	= $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_32.o	= $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_x32.o	= $(CC_FLAGS_FTRACE)
 
 CFLAGS_common.o			+= -fno-stack-protector
-CFLAGS_syscall_64.o		+= -fno-stack-protector
-CFLAGS_syscall_32.o		+= -fno-stack-protector
-CFLAGS_syscall_x32.o		+= -fno-stack-protector
 
 obj-y				:= entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
 obj-y				+= common.o
-- 
2.31.1


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

* Re: [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers
  2021-05-24 18:17 ` [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers Brian Gerst
@ 2021-05-25 11:22   ` Masahiro Yamada
  2021-05-25 15:00   ` [tip: x86/entry] " tip-bot2 for Brian Gerst
  1 sibling, 0 replies; 10+ messages in thread
From: Masahiro Yamada @ 2021-05-25 11:22 UTC (permalink / raw)
  To: Brian Gerst
  Cc: Linux Kernel Mailing List, X86 ML, Andy Lutomirski,
	Borislav Petkov, Thomas Gleixner, Peter Zijlstra

On Tue, May 25, 2021 at 3:17 AM Brian Gerst <brgerst@gmail.com> wrote:
>
> Commit 44fe4895f47c ("Stop filling syscall arrays with *_sys_ni_syscall")
> removed the index from the initializers for native x86 syscall tables, but
> missed the UML syscall tables.


Ah, right.
I missed cleaning up this in UML. Thanks.

Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>






> Signed-off-by: Brian Gerst <brgerst@gmail.com>
> ---
>  arch/x86/um/sys_call_table_32.c | 2 +-
>  arch/x86/um/sys_call_table_64.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c
> index f8323104e353..0575decb5e54 100644
> --- a/arch/x86/um/sys_call_table_32.c
> +++ b/arch/x86/um/sys_call_table_32.c
> @@ -31,7 +31,7 @@
>  #include <asm/syscalls_32.h>
>
>  #undef __SYSCALL
> -#define __SYSCALL(nr, sym) [ nr ] = sym,
> +#define __SYSCALL(nr, sym) sym,
>
>  extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
>
> diff --git a/arch/x86/um/sys_call_table_64.c b/arch/x86/um/sys_call_table_64.c
> index 5ed665dc785f..95725b5a41ac 100644
> --- a/arch/x86/um/sys_call_table_64.c
> +++ b/arch/x86/um/sys_call_table_64.c
> @@ -39,7 +39,7 @@
>  #include <asm/syscalls_64.h>
>
>  #undef __SYSCALL
> -#define __SYSCALL(nr, sym) [ nr ] = sym,
> +#define __SYSCALL(nr, sym) sym,
>
>  extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
>
> --
> 2.31.1
>


--
Best Regards
Masahiro Yamada

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

* Re: [PATCH 2/3] x86/syscalls: Remove -Wno-override-init for syscall tables
  2021-05-24 18:17 ` [PATCH 2/3] x86/syscalls: Remove -Wno-override-init for syscall tables Brian Gerst
@ 2021-05-25 12:01   ` Masahiro Yamada
  2021-05-25 15:00   ` [tip: x86/entry] " tip-bot2 for Brian Gerst
  1 sibling, 0 replies; 10+ messages in thread
From: Masahiro Yamada @ 2021-05-25 12:01 UTC (permalink / raw)
  To: Brian Gerst
  Cc: Linux Kernel Mailing List, X86 ML, Andy Lutomirski,
	Borislav Petkov, Thomas Gleixner, Peter Zijlstra

On Tue, May 25, 2021 at 3:17 AM Brian Gerst <brgerst@gmail.com> wrote:
>
> Commit 44fe4895f47c ("Stop filling syscall arrays with *_sys_ni_syscall")
> removes the need for -Wno-override-init, since the table is now filled
> sequentially instead of overriding a default value.
>
> Signed-off-by: Brian Gerst <brgerst@gmail.com>
> ---


Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>


>  arch/x86/entry/Makefile | 4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile
> index 08bf95dbc911..94d2843ce80c 100644
> --- a/arch/x86/entry/Makefile
> +++ b/arch/x86/entry/Makefile
> @@ -17,10 +17,6 @@ CFLAGS_syscall_64.o          += -fno-stack-protector
>  CFLAGS_syscall_32.o            += -fno-stack-protector
>  CFLAGS_syscall_x32.o           += -fno-stack-protector
>
> -CFLAGS_syscall_64.o            += $(call cc-option,-Wno-override-init,)
> -CFLAGS_syscall_32.o            += $(call cc-option,-Wno-override-init,)
> -CFLAGS_syscall_x32.o           += $(call cc-option,-Wno-override-init,)
> -
>  obj-y                          := entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
>  obj-y                          += common.o
>
> --
> 2.31.1
>


--
Best Regards
Masahiro Yamada

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

* Re: [PATCH 3/3] x86/syscalls: Don't sdjust CFLAGS for syscall tables
  2021-05-24 18:17 ` [PATCH 3/3] x86/syscalls: Don't sdjust CFLAGS " Brian Gerst
@ 2021-05-25 12:01   ` Masahiro Yamada
  2021-05-25 15:00   ` [tip: x86/entry] x86/syscalls: Don't adjust " tip-bot2 for Brian Gerst
  1 sibling, 0 replies; 10+ messages in thread
From: Masahiro Yamada @ 2021-05-25 12:01 UTC (permalink / raw)
  To: Brian Gerst
  Cc: Linux Kernel Mailing List, X86 ML, Andy Lutomirski,
	Borislav Petkov, Thomas Gleixner, Peter Zijlstra

On Tue, May 25, 2021 at 3:17 AM Brian Gerst <brgerst@gmail.com> wrote:
>
> The syscall_*.c files only contain data (the syscall tables).  There
> is no need to adjust CFLAGS for tracing and stack protector since they
> contain no code.
>
> Signed-off-by: Brian Gerst <brgerst@gmail.com>
> ---

Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>

>  arch/x86/entry/Makefile | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile
> index 94d2843ce80c..7fec5dcf6438 100644
> --- a/arch/x86/entry/Makefile
> +++ b/arch/x86/entry/Makefile
> @@ -8,14 +8,8 @@ UBSAN_SANITIZE := n
>  KCOV_INSTRUMENT := n
>
>  CFLAGS_REMOVE_common.o         = $(CC_FLAGS_FTRACE)
> -CFLAGS_REMOVE_syscall_64.o     = $(CC_FLAGS_FTRACE)
> -CFLAGS_REMOVE_syscall_32.o     = $(CC_FLAGS_FTRACE)
> -CFLAGS_REMOVE_syscall_x32.o    = $(CC_FLAGS_FTRACE)
>
>  CFLAGS_common.o                        += -fno-stack-protector
> -CFLAGS_syscall_64.o            += -fno-stack-protector
> -CFLAGS_syscall_32.o            += -fno-stack-protector
> -CFLAGS_syscall_x32.o           += -fno-stack-protector
>
>  obj-y                          := entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
>  obj-y                          += common.o
> --
> 2.31.1
>


-- 
Best Regards
Masahiro Yamada

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

* [tip: x86/entry] x86/syscalls: Don't adjust CFLAGS for syscall tables
  2021-05-24 18:17 ` [PATCH 3/3] x86/syscalls: Don't sdjust CFLAGS " Brian Gerst
  2021-05-25 12:01   ` Masahiro Yamada
@ 2021-05-25 15:00   ` tip-bot2 for Brian Gerst
  1 sibling, 0 replies; 10+ messages in thread
From: tip-bot2 for Brian Gerst @ 2021-05-25 15:00 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Brian Gerst, Thomas Gleixner, Masahiro Yamada, x86, linux-kernel

The following commit has been merged into the x86/entry branch of tip:

Commit-ID:     48f7eee81cd53a94699d28959566b41a9dcac1d9
Gitweb:        https://git.kernel.org/tip/48f7eee81cd53a94699d28959566b41a9dcac1d9
Author:        Brian Gerst <brgerst@gmail.com>
AuthorDate:    Mon, 24 May 2021 14:17:07 -04:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 25 May 2021 16:59:23 +02:00

x86/syscalls: Don't adjust CFLAGS for syscall tables

The syscall_*.c files only contain data (the syscall tables).  There
is no need to adjust CFLAGS for tracing and stack protector since they
contain no code.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210524181707.132844-4-brgerst@gmail.com

---
 arch/x86/entry/Makefile | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile
index 94d2843..7fec5dc 100644
--- a/arch/x86/entry/Makefile
+++ b/arch/x86/entry/Makefile
@@ -8,14 +8,8 @@ UBSAN_SANITIZE := n
 KCOV_INSTRUMENT := n
 
 CFLAGS_REMOVE_common.o		= $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_64.o	= $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_32.o	= $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_syscall_x32.o	= $(CC_FLAGS_FTRACE)
 
 CFLAGS_common.o			+= -fno-stack-protector
-CFLAGS_syscall_64.o		+= -fno-stack-protector
-CFLAGS_syscall_32.o		+= -fno-stack-protector
-CFLAGS_syscall_x32.o		+= -fno-stack-protector
 
 obj-y				:= entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
 obj-y				+= common.o

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

* [tip: x86/entry] x86/syscalls: Remove -Wno-override-init for syscall tables
  2021-05-24 18:17 ` [PATCH 2/3] x86/syscalls: Remove -Wno-override-init for syscall tables Brian Gerst
  2021-05-25 12:01   ` Masahiro Yamada
@ 2021-05-25 15:00   ` tip-bot2 for Brian Gerst
  1 sibling, 0 replies; 10+ messages in thread
From: tip-bot2 for Brian Gerst @ 2021-05-25 15:00 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Brian Gerst, Thomas Gleixner, Masahiro Yamada, x86, linux-kernel

The following commit has been merged into the x86/entry branch of tip:

Commit-ID:     fd9e8691f38712892fa2ac73132dcc8b85b07a8f
Gitweb:        https://git.kernel.org/tip/fd9e8691f38712892fa2ac73132dcc8b85b07a8f
Author:        Brian Gerst <brgerst@gmail.com>
AuthorDate:    Mon, 24 May 2021 14:17:06 -04:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 25 May 2021 16:59:23 +02:00

x86/syscalls: Remove -Wno-override-init for syscall tables

Commit 44fe4895f47c ("Stop filling syscall arrays with *_sys_ni_syscall")
removes the need for -Wno-override-init, since the table is now filled
sequentially instead of overriding a default value.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210524181707.132844-3-brgerst@gmail.com

---
 arch/x86/entry/Makefile | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile
index 08bf95d..94d2843 100644
--- a/arch/x86/entry/Makefile
+++ b/arch/x86/entry/Makefile
@@ -17,10 +17,6 @@ CFLAGS_syscall_64.o		+= -fno-stack-protector
 CFLAGS_syscall_32.o		+= -fno-stack-protector
 CFLAGS_syscall_x32.o		+= -fno-stack-protector
 
-CFLAGS_syscall_64.o		+= $(call cc-option,-Wno-override-init,)
-CFLAGS_syscall_32.o		+= $(call cc-option,-Wno-override-init,)
-CFLAGS_syscall_x32.o		+= $(call cc-option,-Wno-override-init,)
-
 obj-y				:= entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
 obj-y				+= common.o
 

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

* [tip: x86/entry] x86/uml/syscalls: Remove array index from syscall initializers
  2021-05-24 18:17 ` [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers Brian Gerst
  2021-05-25 11:22   ` Masahiro Yamada
@ 2021-05-25 15:00   ` tip-bot2 for Brian Gerst
  1 sibling, 0 replies; 10+ messages in thread
From: tip-bot2 for Brian Gerst @ 2021-05-25 15:00 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Brian Gerst, Thomas Gleixner, Masahiro Yamada, x86, linux-kernel

The following commit has been merged into the x86/entry branch of tip:

Commit-ID:     d48ca5b98fa5d21444e04bb17373d339200b679a
Gitweb:        https://git.kernel.org/tip/d48ca5b98fa5d21444e04bb17373d339200b679a
Author:        Brian Gerst <brgerst@gmail.com>
AuthorDate:    Mon, 24 May 2021 14:17:05 -04:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 25 May 2021 16:59:23 +02:00

x86/uml/syscalls: Remove array index from syscall initializers

The recent syscall table generator rework removed the index from the
initializers for native x86 syscall tables, but missed the UML syscall
tables.

Fixes: 44fe4895f47c ("Stop filling syscall arrays with *_sys_ni_syscall")
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210524181707.132844-2-brgerst@gmail.com

---
 arch/x86/um/sys_call_table_32.c | 2 +-
 arch/x86/um/sys_call_table_64.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c
index f832310..0575dec 100644
--- a/arch/x86/um/sys_call_table_32.c
+++ b/arch/x86/um/sys_call_table_32.c
@@ -31,7 +31,7 @@
 #include <asm/syscalls_32.h>
 
 #undef __SYSCALL
-#define __SYSCALL(nr, sym) [ nr ] = sym,
+#define __SYSCALL(nr, sym) sym,
 
 extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
 
diff --git a/arch/x86/um/sys_call_table_64.c b/arch/x86/um/sys_call_table_64.c
index 5ed665d..95725b5 100644
--- a/arch/x86/um/sys_call_table_64.c
+++ b/arch/x86/um/sys_call_table_64.c
@@ -39,7 +39,7 @@
 #include <asm/syscalls_64.h>
 
 #undef __SYSCALL
-#define __SYSCALL(nr, sym) [ nr ] = sym,
+#define __SYSCALL(nr, sym) sym,
 
 extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
 

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

end of thread, other threads:[~2021-05-25 15:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 18:17 [PATCH 0/3] x86: Syscall table cleanups Brian Gerst
2021-05-24 18:17 ` [PATCH 1/3] x86/uml/syscalls: Remove array index from syscall initializers Brian Gerst
2021-05-25 11:22   ` Masahiro Yamada
2021-05-25 15:00   ` [tip: x86/entry] " tip-bot2 for Brian Gerst
2021-05-24 18:17 ` [PATCH 2/3] x86/syscalls: Remove -Wno-override-init for syscall tables Brian Gerst
2021-05-25 12:01   ` Masahiro Yamada
2021-05-25 15:00   ` [tip: x86/entry] " tip-bot2 for Brian Gerst
2021-05-24 18:17 ` [PATCH 3/3] x86/syscalls: Don't sdjust CFLAGS " Brian Gerst
2021-05-25 12:01   ` Masahiro Yamada
2021-05-25 15:00   ` [tip: x86/entry] x86/syscalls: Don't adjust " tip-bot2 for Brian Gerst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.