* [PATCH] riscv: compat_syscall_table: Fixup compile warning
@ 2023-05-01 22:33 Drew Fustini
2023-05-01 22:44 ` Palmer Dabbelt
2023-05-08 14:41 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 3+ messages in thread
From: Drew Fustini @ 2023-05-01 22:33 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Guo Ren, Li Zhengyu,
Björn Töpel, Heiko Stuebner, Liao Chang,
Masahiro Yamada, Alexandre Ghiti, Jisheng Zhang, Arnd Bergmann,
linux-riscv, linux-kernel
Cc: Drew Fustini, Conor Dooley, kernel test robot, Guo Ren
From: Guo Ren <guoren@linux.alibaba.com>
../arch/riscv/kernel/compat_syscall_table.c:12:41: warning: initialized
field overwritten [-Woverride-init]
12 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
../include/uapi/asm-generic/unistd.h:567:1: note: in expansion of macro
'__SYSCALL'
567 | __SYSCALL(__NR_semget, sys_semget)
Fixes: 59c10c52f573 ("riscv: compat: syscall: Add compat_sys_call_table implementation")
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reported-by: kernel test robot <lkp@intel.com>
Tested-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
This fix was in the v9 of "riscv: Add GENERIC_ENTRY support and related
features" [1] but was dropped in v10 [2] with the prospect that it would
be submitted separately. That seems to have not happened so I am
submitting it now. I want to silence the riscv warnings when using W=1.
With this patch applied to riscv/for-next, I no longer see any warnings
for riscv.
[1] https://lore.kernel.org/linux-riscv/20221130034059.826599-4-guoren@kernel.org/
[2] https://lore.kernel.org/lkml/20230222033021.983168-1-guoren@kernel.org/
arch/riscv/kernel/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile
index 0fee73a20c87..c2ff6440767c 100644
--- a/arch/riscv/kernel/Makefile
+++ b/arch/riscv/kernel/Makefile
@@ -9,6 +9,7 @@ CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE)
CFLAGS_REMOVE_sbi.o = $(CC_FLAGS_FTRACE)
endif
CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,)
+CFLAGS_compat_syscall_table.o += $(call cc-option,-Wno-override-init,)
ifdef CONFIG_KEXEC
AFLAGS_kexec_relocate.o := -mcmodel=medany $(call cc-option,-mno-relax)
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] riscv: compat_syscall_table: Fixup compile warning
2023-05-01 22:33 [PATCH] riscv: compat_syscall_table: Fixup compile warning Drew Fustini
@ 2023-05-01 22:44 ` Palmer Dabbelt
2023-05-08 14:41 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: Palmer Dabbelt @ 2023-05-01 22:44 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Guo Ren, Li Zhengyu,
=C3=B6rn_T=C3=B6pel?=, Heiko Stuebner, Liao Chang,
Masahiro Yamada, Alexandre Ghiti, Jisheng Zhang, Arnd Bergmann,
linux-riscv, linux-kernel, Drew Fustini
Cc: Conor Dooley, kernel test robot, Guo Ren
On Mon, 01 May 2023 15:33:54 -0700, Drew Fustini wrote:
> ../arch/riscv/kernel/compat_syscall_table.c:12:41: warning: initialized
> field overwritten [-Woverride-init]
> 12 | #define __SYSCALL(nr, call) [nr] = (call),
> | ^
> ../include/uapi/asm-generic/unistd.h:567:1: note: in expansion of macro
> '__SYSCALL'
> 567 | __SYSCALL(__NR_semget, sys_semget)
>
> [...]
Applied, thanks!
[1/1] riscv: compat_syscall_table: Fixup compile warning
https://git.kernel.org/palmer/c/f9c4bbddece7
Best regards,
--
Palmer Dabbelt <palmer@rivosinc.com>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] riscv: compat_syscall_table: Fixup compile warning
2023-05-01 22:33 [PATCH] riscv: compat_syscall_table: Fixup compile warning Drew Fustini
2023-05-01 22:44 ` Palmer Dabbelt
@ 2023-05-08 14:41 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-05-08 14:41 UTC (permalink / raw)
To: Drew Fustini
Cc: linux-riscv, paul.walmsley, palmer, aou, guoren, lizhengyu3,
bjorn, heiko, liaochang1, masahiroy, alexghiti, jszhang, arnd,
linux-kernel, conor.dooley, lkp, guoren
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Mon, 1 May 2023 15:33:54 -0700 you wrote:
> From: Guo Ren <guoren@linux.alibaba.com>
>
> ../arch/riscv/kernel/compat_syscall_table.c:12:41: warning: initialized
> field overwritten [-Woverride-init]
> 12 | #define __SYSCALL(nr, call) [nr] = (call),
> | ^
> ../include/uapi/asm-generic/unistd.h:567:1: note: in expansion of macro
> '__SYSCALL'
> 567 | __SYSCALL(__NR_semget, sys_semget)
>
> [...]
Here is the summary with links:
- riscv: compat_syscall_table: Fixup compile warning
https://git.kernel.org/riscv/c/f9c4bbddece7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-08 14:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-01 22:33 [PATCH] riscv: compat_syscall_table: Fixup compile warning Drew Fustini
2023-05-01 22:44 ` Palmer Dabbelt
2023-05-08 14:41 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox