From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0E4EECAAA1 for ; Tue, 6 Sep 2022 03:55:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zoldqAY7NzNQMWBbUlNpwxKzMnbd6cwbYodhCzU5nx8=; b=QgWZWqS8rMJodP 1Las7GMvtHEwrsPIJeRb8uMSD2lbTuDdFdiSPcKIk7WqPVy15o0UEcohSfWmryBZL85WBSWh5Vr2H fAoJxvUJi68+N4Kbh7NeDyz8zrW6hgWo1nFcHSoyP2lL3qJTSyOBZmaKqwYjvR04SDAz25F/hh8iB H1JNw1W8uaYjPSZWo5uDVUvVdg4WGwIIrngmBPoOA94gJWnfMRd9OoBFT2aiYZIve9XaToQqx2MuN f8fQSRic1P29iqWcJaBz+BQinMUEeKhwUAhw3Td/CG0bnYqrdpug0iWAJSbJJQQQomgallAFd43Gh chRmfbbA9MSadxYInZGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVPg0-003xIq-QA; Tue, 06 Sep 2022 03:55:05 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVPfo-003wpY-EO for linux-riscv@lists.infradead.org; Tue, 06 Sep 2022 03:54:57 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id C707A61227; Tue, 6 Sep 2022 03:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48B5BC433B5; Tue, 6 Sep 2022 03:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662436489; bh=RGP7CDjbcyHeNMuZLodmYJfbkQkcESukcz8ylbmajf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nHgOWGK4VoTfDyBgo6InDAKLQmogRc8s3ka5Ds+OQ3eLDaHrvdu9GKlZyZveLwAVA NVE4/0WdUSwhbtP9pducgWfRNhoFK2fxm7yIAn6BKh0lbtxCxt0XytV1NO1665Ptto Oa7DU3nj/Y+05M3E2zJWValIHEwiGwasVN4vekv53c5vIMFXkJAb+hJh1JxQ7oCjc2 VmLTrF4n45cF1bTTqBvIvnuAJbQoGxqD/I5ZEzQnio5CsV4kG4ZXzeq3dN/yBp2SE4 tFTdaiS5wH71klJs1gCexoVET+6gy2mzWKG2+R02mNz4Ogk58PAKpmmIqjjWK3jVrM igkGdW1IYfGnQ== 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, bigeasy@linutronix.de Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren , kernel test robot Subject: [PATCH V3 2/7] riscv: compat_syscall_table: Fixup compile warning Date: Mon, 5 Sep 2022 23:54:18 -0400 Message-Id: <20220906035423.634617-3-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220906035423.634617-1-guoren@kernel.org> References: <20220906035423.634617-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220905_205455_100624_BA1F9E14 X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Guo Ren ../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") Signed-off-by: Guo Ren Signed-off-by: Guo Ren Reviewed-by: Conor Dooley Reported-by: kernel test robot --- arch/riscv/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile index 33bb60a354cd..01da14e21019 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.36.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv