From nobody Fri Sep 19 03:53:15 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AFB9C433FE for ; Wed, 30 Nov 2022 03:42:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232519AbiK3DmZ (ORCPT ); Tue, 29 Nov 2022 22:42:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232976AbiK3DmR (ORCPT ); Tue, 29 Nov 2022 22:42:17 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF3671F22; Tue, 29 Nov 2022 19:42:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1CE54B80B57; Wed, 30 Nov 2022 03:42:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 177F4C433D7; Wed, 30 Nov 2022 03:42:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669779733; bh=AP/C01/D0KNzYuTTynHf3ROQXEf+TYW9/7Q2FlSNrt4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HMTKrqBxySKjopHM8HEQyXnrWvWdEbM9UP4natqA1Ghzg4AuffA8c+L0ZBD7SCiO7 ZREw28AKk4wP/1F6d+RAXnMOCfJK2sk33pQUUE/0eHvP1HzIdDmLn9N8aoyRcZ7WHq Iqu2PDcYqB8k9Xr5B+OKyld9fz8D6T92gCGOM/cfRJuSYTpaVfm0r06+TCJRjjgA68 LzyTF0fnAHPat7/BIkWhGzmMv2GwWC3ZT0lH9TBVEBI6UZrvhnJ+yjmMC2h9vkb0/D 15TdpMYaUBW0zCdrn2kMd0Mb3JcsTQE4tkZ5sVZKoqnMKOBmRQhOcjbdFmcFxiV9a2 +Rpqqiy5+g8bA== From: guoren@kernel.org To: arnd@arndb.de, guoren@kernel.org, palmer@rivosinc.com, tglx@linutronix.de, peterz@infradead.org, luto@kernel.org, conor.dooley@microchip.com, heiko@sntech.de, jszhang@kernel.org, lazyparser@gmail.com, falcon@tinylab.org, chenhuacai@kernel.org, apatel@ventanamicro.com, atishp@atishpatra.org, palmer@dabbelt.com, paul.walmsley@sifive.com, mark.rutland@arm.com, zouyipeng@huawei.com, bigeasy@linutronix.de, David.Laight@aculab.com, chenzhongjin@huawei.com, greentime.hu@sifive.com, andy.chiu@sifive.com, ben@decadent.org.uk Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren , kernel test robot Subject: [PATCH -next V9 03/14] riscv: compat_syscall_table: Fixup compile warning Date: Tue, 29 Nov 2022 22:40:48 -0500 Message-Id: <20221130034059.826599-4-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221130034059.826599-1-guoren@kernel.org> References: <20221130034059.826599-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Guo Ren ../arch/riscv/kernel/compat_syscall_table.c:12:41: warning: initialized field overwritten [-Woverride-init] 12 | #define __SYSCALL(nr, call) [nr] =3D (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 imp= lementation") Reviewed-by: Conor Dooley Reported-by: kernel test robot Tested-by: Jisheng Zhang Signed-off-by: Guo Ren Signed-off-by: Guo Ren --- arch/riscv/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile index db6e4b1294ba..ab333cb792fd 100644 --- a/arch/riscv/kernel/Makefile +++ b/arch/riscv/kernel/Makefile @@ -9,6 +9,7 @@ CFLAGS_REMOVE_patch.o =3D $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_sbi.o =3D $(CC_FLAGS_FTRACE) endif CFLAGS_syscall_table.o +=3D $(call cc-option,-Wno-override-init,) +CFLAGS_compat_syscall_table.o +=3D $(call cc-option,-Wno-override-init,) =20 ifdef CONFIG_KEXEC AFLAGS_kexec_relocate.o :=3D -mcmodel=3Dmedany $(call cc-option,-mno-relax) --=20 2.36.1