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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8B7BC433F5 for ; Fri, 18 Mar 2022 18:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240026AbiCRSLr (ORCPT ); Fri, 18 Mar 2022 14:11:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233194AbiCRSLn (ORCPT ); Fri, 18 Mar 2022 14:11:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA002E842A for ; Fri, 18 Mar 2022 11:10:25 -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 D1C79B81747 for ; Fri, 18 Mar 2022 18:10:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73D4CC340E8; Fri, 18 Mar 2022 18:10:20 +0000 (UTC) From: Catalin Marinas To: Will Deacon , Arnd Bergmann Cc: Rich Wiley , James Morse , Mathieu Poirier , linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Anshuman Khandual , linux-kernel@vger.kernel.org, Suzuki K Poulose Subject: Re: [PATCH] arm64: errata: avoid duplicate field initializer Date: Fri, 18 Mar 2022 18:10:18 +0000 Message-Id: <164762664708.829336.6118267245056806692.b4-ty@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220316183800.1546731-1-arnd@kernel.org> References: <20220316183800.1546731-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Mar 2022 19:37:45 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The '.type' field is initialized both in place and in the macro > as reported by this W=1 warning: > > arch/arm64/include/asm/cpufeature.h:281:9: error: initialized field overwritten [-Werror=override-init] > 281 | (ARM64_CPUCAP_SCOPE_LOCAL_CPU | ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU) > | ^ > arch/arm64/kernel/cpu_errata.c:136:17: note: in expansion of macro 'ARM64_CPUCAP_LOCAL_CPU_ERRATUM' > 136 | .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM, \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > arch/arm64/kernel/cpu_errata.c:145:9: note: in expansion of macro 'ERRATA_MIDR_RANGE' > 145 | ERRATA_MIDR_RANGE(m, var, r_min, var, r_max) > | ^~~~~~~~~~~~~~~~~ > arch/arm64/kernel/cpu_errata.c:613:17: note: in expansion of macro 'ERRATA_MIDR_REV_RANGE' > 613 | ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A510, 0, 0, 2), > | ^~~~~~~~~~~~~~~~~~~~~ > arch/arm64/include/asm/cpufeature.h:281:9: note: (near initialization for 'arm64_errata[18].type') > 281 | (ARM64_CPUCAP_SCOPE_LOCAL_CPU | ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU) > | ^ > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: errata: avoid duplicate field initializer https://git.kernel.org/arm64/c/316e46f65a54 -- Catalin 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 B506FC433EF for ; Fri, 18 Mar 2022 18:11:46 +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=YW5xM0j4mco00M5JGEIFzdzmDqx9mOt+F3QuL1PCg3M=; b=RwTkWLu5yck1ml BjHPeYqJeVLOrbXkZZxKh7mLgwQDf6v3QMxLi8V8UCEUYchvUTTqC/do0lI0+rW9WB7DhNleDWd2X +1hPXXqDzrDUHQ+b7v26lrCj+YZng1kpsxydEctBbOQb03/ip7OFeFLwSWLz0eOUii7xfEu6HzD5W BSnkXASNj0nRSxqzRjb/pHroiuVrtOhfqn0vbjEMp6ksHqN2hwbmuki7udT1Bct8S1OIvsI6gfcjD tImoleLM8krymAWUfvXqy4epHAVeiArkVrA34eI/LauGhltOPQFg15ZJildvVJmCugHU+pwdCAVMk +2gKVoFeY7QyXGW1lDzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nVH3T-002aKO-UN; Fri, 18 Mar 2022 18:10:28 +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 1nVH3Q-002aJf-GQ for linux-arm-kernel@lists.infradead.org; Fri, 18 Mar 2022 18:10:26 +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 2693661AE0; Fri, 18 Mar 2022 18:10:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73D4CC340E8; Fri, 18 Mar 2022 18:10:20 +0000 (UTC) From: Catalin Marinas To: Will Deacon , Arnd Bergmann Cc: Rich Wiley , James Morse , Mathieu Poirier , linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Anshuman Khandual , linux-kernel@vger.kernel.org, Suzuki K Poulose Subject: Re: [PATCH] arm64: errata: avoid duplicate field initializer Date: Fri, 18 Mar 2022 18:10:18 +0000 Message-Id: <164762664708.829336.6118267245056806692.b4-ty@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220316183800.1546731-1-arnd@kernel.org> References: <20220316183800.1546731-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220318_111024_630407_F439820F X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 16 Mar 2022 19:37:45 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The '.type' field is initialized both in place and in the macro > as reported by this W=1 warning: > > arch/arm64/include/asm/cpufeature.h:281:9: error: initialized field overwritten [-Werror=override-init] > 281 | (ARM64_CPUCAP_SCOPE_LOCAL_CPU | ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU) > | ^ > arch/arm64/kernel/cpu_errata.c:136:17: note: in expansion of macro 'ARM64_CPUCAP_LOCAL_CPU_ERRATUM' > 136 | .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM, \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > arch/arm64/kernel/cpu_errata.c:145:9: note: in expansion of macro 'ERRATA_MIDR_RANGE' > 145 | ERRATA_MIDR_RANGE(m, var, r_min, var, r_max) > | ^~~~~~~~~~~~~~~~~ > arch/arm64/kernel/cpu_errata.c:613:17: note: in expansion of macro 'ERRATA_MIDR_REV_RANGE' > 613 | ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A510, 0, 0, 2), > | ^~~~~~~~~~~~~~~~~~~~~ > arch/arm64/include/asm/cpufeature.h:281:9: note: (near initialization for 'arm64_errata[18].type') > 281 | (ARM64_CPUCAP_SCOPE_LOCAL_CPU | ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU) > | ^ > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: errata: avoid duplicate field initializer https://git.kernel.org/arm64/c/316e46f65a54 -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel