Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6100935rwd; Mon, 19 Jun 2023 02:13:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/949xAcJbHB9UHGrtJ1rqO9s2FXBpj+zOyApgsZGg69+1sGkMvZx7Hc3ZK/2PbDL3Ujbm X-Received: by 2002:a17:90a:d310:b0:25e:b5ba:8bb9 with SMTP id p16-20020a17090ad31000b0025eb5ba8bb9mr6354671pju.5.1687166033199; Mon, 19 Jun 2023 02:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687166033; cv=none; d=google.com; s=arc-20160816; b=vqqCWdpALOMAdsHsbTDnNP2NCVartIEUa6Hy1Ifz28dwFaf4rvlNIhoqwDtvCO5MEV FDDYZAfvEEk5CQkmtl1fGdHHS7VlLsYoG5bpDjEt4qMDB8jPXllioxITHh9uqztM/CTU hKIGe24sEdz9dBwO4wYNxVGbvXW5hCG6oW0YIuu3/Bz58cW53MOJ1zzdoTrb6YXQyaQN V/oMCGZS+aIrJ01MxkOvsPEtRwahW+xjzz+t2n393ugkcWW0ZjYpkgZWZf0p3ihGZ5gm T0tm9z2IXzcitOLgjhh78xOtbwWr/yny4ztadogVpBgUO8tRxTMQQm09MjOuqG1kL+EL 3xVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9ft00l+B0S41zwgia7w9UlSVKseJXy/VlgNeabdK8/w=; b=mz7X4MkHw91Z0/Mc8KjJpRl0LM8dOSps7zhKRPPKE/0Obevmj1aGl4YkrO8Rfvxwt0 cSWEq0Ct1bvvyPuTnODKQv0nMJJCeegvYf0uEnibMVuRwOZvfqNEvWotSrOu4e03x1Qj 8BzwlW64w7cxa6xCyf4ZPNiugRnRSHkJpilDLlkruFwySqID5W6MOAbj/KP/e95WbARh /l2cvcalB/00iHbhq14fE1fVw1hNlSBQOrmmGR0IBZuNZ2KwtBLmuOsDZal4IGf0T7o5 +sGpBMCYv63wtpbS33xISZUC5vNE6W+YO00YQI3SWHMVdwxWw/uaFVfYqaEineBvFOLD oZmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tqrj4QM+; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a170902be0800b001b010445600si1353957pls.500.2023.06.19.02.13.40; Mon, 19 Jun 2023 02:13:53 -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=@linaro.org header.s=google header.b=tqrj4QM+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjFSI4T (ORCPT + 99 others); Mon, 19 Jun 2023 04:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbjFSIz1 (ORCPT ); Mon, 19 Jun 2023 04:55:27 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA32EE for ; Mon, 19 Jun 2023 01:55:09 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-bd61dd9a346so3440304276.2 for ; Mon, 19 Jun 2023 01:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687164909; x=1689756909; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9ft00l+B0S41zwgia7w9UlSVKseJXy/VlgNeabdK8/w=; b=tqrj4QM+V+4XvszlmFkNx3twtjmwRb3RCyqygXoi+BFpO+2dvyefbsmXNS8zTrF5MM QjCoLK+SPOTHY+AoDJbkhSQzvxJNBCBWrGQrS1dpAUxNv7LSXW4qFGDIFw8iSqDDWut9 j9oqwUUVSQBK5tdk+Um3uh5k7BT+pjLVmYBPeRQ5CXqPS2Tgj+nix37iR1iFlBZ0KbjK 7zrSS9gOhuioNWaX2CGpCE6MwisuDCm1voP64JbFJ4rbBoUko2sMovMLtlY/CqEpjJmP 3UjMvBe8RnC5Lz1wiO+1NO4194YqGHksRw/Xuqhvq31sYzfbWJonjyncj5+5taBdk9cb 6xkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687164909; x=1689756909; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9ft00l+B0S41zwgia7w9UlSVKseJXy/VlgNeabdK8/w=; b=PG4RNfwjaFRjL/RexBoHkYtKPpuUW54ih0R1AumtHMtqADYVSQ9aNA8smtP4gNQ5B3 nWdXJ1mAYJHnOgD6Ia3i3kVy+ityncEmAsVVs9r1pr/Zd5eowbn9voQtd6rZ4JaOZrsj ti1EtIajuTh592DtHPOgCISklQ2j9Y9RsSnDtfSwIU/gxzFpFzi+KhBH8bw0THempxWb qMbZsPNvHmLoWdz+TvNjWY6BtgZU/D3JujHVyiAaDfpgCz6FTngbhajzEJxzqXsE+AYI QCpm44s4j2h35yrtqsHqhtI0UjUZUTqQw+PkJ5157mcuw/Wn5dT7W+d4ZKmohExjQqbk Q4Kw== X-Gm-Message-State: AC+VfDwzgDjmVGRE9sndUM2yC/bHxH2dIURVZSsFe+tcRTtopIN65fWX rGAhJaQcKqfbCNHkBe0vMBZsf71cn9aML8qBL1h1Gg== X-Received: by 2002:a25:cfd8:0:b0:b9d:8613:6936 with SMTP id f207-20020a25cfd8000000b00b9d86136936mr6097091ybg.50.1687164909140; Mon, 19 Jun 2023 01:55:09 -0700 (PDT) MIME-Version: 1.0 References: <20230616161603.1127687-1-arnd@kernel.org> In-Reply-To: <20230616161603.1127687-1-arnd@kernel.org> From: Linus Walleij Date: Mon, 19 Jun 2023 10:54:58 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: tegra: avoid duplicate field initializers To: Arnd Bergmann Cc: Thierry Reding , Jonathan Hunter , Arnd Bergmann , Prathamesh Shete , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Fri, Jun 16, 2023 at 6:16=E2=80=AFPM Arnd Bergmann wro= te: > From: Arnd Bergmann > > The drv_reg field is initialized both in the DRV_PINGROUP_ENTRY_N/DRV_PIN= GROUP_ENTRY_Y > macros and in DRV_PINGROUP_Y. Since each pingroup expands both macros, th= e are > always duplicate and turning on -Woverride-init (which is disabled by def= ault) > causes a huge amount of warnings like: > > drivers/pinctrl/tegra/pinctrl-tegra234.c:1384:27: error: initialized fiel= d overwritten [-Werror=3Doverride-init] > 1384 | #define DRV_PINGROUP_Y(r) ((r)) > | ^ > drivers/pinctrl/tegra/pinctrl-tegra234.c:1397:28: note: in expansion of m= acro 'DRV_PINGROUP_Y' > 1397 | .drv_reg =3D DRV_PINGROUP_Y(r), = \ > | ^~~~~~~~~~~~~~ > drivers/pinctrl/tegra/pinctrl-tegra234.c:1447:49: note: in expansion of m= acro 'DRV_PINGROUP_ENTRY_Y' > 1447 | #define drive_soc_gpio08_pb0 DRV_PINGROUP_ENTR= Y_Y(0x500c, 12, 5, 20, 5, -1, -1, -1, -1, = 0) > | ^~~~~~~~~~~~~~~~~= ~~~ > ... > > Remove the intialization that is never used here. > > Signed-off-by: Arnd Bergmann Patch applied! Yours, Linus Walleij