Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3874844rwb; Mon, 5 Sep 2022 21:28:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR7kA53ak2JyWbtMdYEKN9l0u4vkPgPGlvrqlcelAI4DV6woyAch9ojJayy/QbKIrpSFGqsN X-Received: by 2002:a17:906:c14f:b0:741:8888:dec with SMTP id dp15-20020a170906c14f00b0074188880decmr27425994ejc.312.1662438491978; Mon, 05 Sep 2022 21:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662438491; cv=none; d=google.com; s=arc-20160816; b=0dKt+pE8fvz/IqGJ3n3RXuxW/p4xo9Or2h7+Dpew6JKQ4K2KfXnX7V2IcpV8YTWIOK hYbRWyptrtQYrhUBL6DooDYC4UrRpeNr0841nmTcmuZVPyWCAiXwFudYTmGr90DKaetT XZVPXNlMFdrWhTmgj3F09VX5E/ucQHFf9eRAbF8ztmsyZLfTjVkvLxEuHoxET2QEY4RD 9epRHeURNMYSbvyriRkn+AYCGGnf7S4ubPedYZEIy67IZ1bJt7fPPxJ4biYaV+EGquhE BPww9GPQPwbuhf66cpKe1duUVMvvk0pg66rs5W1cLZ9QVYGZByJqFPGTwuKNb41RWV0Z NThw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3V9DQ9pZg4gMdI7weLi0iw1zx5XidE6XNPAbkpvArjE=; b=vrFlGFnsKHeZa3iwR5hXM/hWcbbP/+VkXS4PK6HOzxTPhvDcgkMI2nurpD0R6iG62u 88IVF6ddxlO1uT/FzrnN3Emr7lp8fO04JWqcUjSuSS6GRvsT+LTbkyjWX+pxV9+DqdVD 38S0xDsf//WQOAI+R/o/C1NY8ZOMiurMkLYuY93VyV8QRBTlfnM801IyVOVma080gDMh TP1FO6M8ZB5Si+DE335ovV7vQKcxmUwob2jJ33g7lAs7VP+XAQrnzSMOHYxzFSfFtnG6 kHKkuXHsmdZDs0EVbhurfF3te+iKANN/VXOYOwQV60epO9y7nLfSzFFsmS6qre2c8AR3 4bwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nHgOWGK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020aa7ccc4000000b0044ed7872714si488138edt.129.2022.09.05.21.27.46; Mon, 05 Sep 2022 21:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nHgOWGK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237574AbiIFDzO (ORCPT + 99 others); Mon, 5 Sep 2022 23:55:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231785AbiIFDyy (ORCPT ); Mon, 5 Sep 2022 23:54:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB6C512742; Mon, 5 Sep 2022 20:54:52 -0700 (PDT) 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 E1E89B81604; Tue, 6 Sep 2022 03:54:50 +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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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