Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6129470rwd; Mon, 19 Jun 2023 02:48:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fqDB1xrq1kJ94QLxuEXDZu+6qA1Rc8dYGRfIm4ug7n1jPuKTGg7tLO8jq7XSiDr9yktlR X-Received: by 2002:a05:6a20:428c:b0:116:99fe:e6de with SMTP id o12-20020a056a20428c00b0011699fee6demr12847735pzj.30.1687168118362; Mon, 19 Jun 2023 02:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687168118; cv=none; d=google.com; s=arc-20160816; b=f6w/m828CqO5cAjv4+8lj0Ms8ZupGjq9P3c1xbRj88Rj5xw3fYTidNCsGP1EqjdaOB CZhYnsiXDeZJtaUBGx4sP4FfQuAtC+IYSDTcazeVjWKBpHJ3QI6mD3dwpRP20loKirW3 LJ9QR3FNHyNCtLHy8jx2a9uB23X45+vo/cQ+ypAeVZD/aqBQ8xgil0EizV5Y59BkDKx5 L5co315+CRgZrufCE0olcJD/8NUHNHWUYfeMl8mtLC9QHyUYEli9t9Vg94VNQPJQ+71n SjJWGyRvYJpuKvfKcOUUIJfgw56H9vkKaw3niiS1QFyhmoWqgNCqyjE/0ebSWb/aOwIJ UNUA== 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=xLmeJWd/edsFY2ls/Yz70yLNc/eoAErRFP6oqVGaQzo=; b=kqZT3ZQcrDvDkmjn3DOn7IMfFvnv9Zwvc8ykyVJxlEgqCCQycM3WrBLoa7pSioK3Mg si/abHZz6bLABoEtx4VcQ3JpLL/sQO+Hhzou4pj/jCjAD2kCRI2WnSU47Ahj04BFxVSK 4v/M/3UjdVka72PwiIrqoj042B84aZBnys/TVkoLxmJ1rLEqxump3ung82EQVWMfRclI YGmz3aWVlnbJc14F2/zWPrFqAnsb3f5ppcfcYFMOv3tHyjaP9sRj9xWrXMIX9qGp9lvj x2isOFnknroYc5nlO0CivGSdTtpNaqvGVQ7DRFxiKjMl3Fr+VwRdAeDp7Mk7lQ7xDQUV 0nOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uIr0hcR/"; 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 24-20020a631258000000b00543c8ad57f7si16606803pgs.83.2023.06.19.02.48.22; Mon, 19 Jun 2023 02:48:38 -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="uIr0hcR/"; 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 S230267AbjFSI67 (ORCPT + 99 others); Mon, 19 Jun 2023 04:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230223AbjFSI6n (ORCPT ); Mon, 19 Jun 2023 04:58:43 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A309E62 for ; Mon, 19 Jun 2023 01:58:00 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5702415be17so26513227b3.2 for ; Mon, 19 Jun 2023 01:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687165079; x=1689757079; 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=xLmeJWd/edsFY2ls/Yz70yLNc/eoAErRFP6oqVGaQzo=; b=uIr0hcR/YywyPAn1Q9NNec4n4+nmGsa9QwL8DBaVlBbyAkaJwg20xEqKD4ly3I2aVj BQyWFsp6A9kFryjQcNVsM+x32cYfVnFmDqL66ku1aFu2ZbDAwTzeu2PDry2Sq5HtQ7ZE D/GcEb21bpeuRiXhhVx4B44cJGiL0tdXU/UduN4U1SvhInp2hUshVs9ec8TvARKAmuZI D/CJUYRpjiJhPBty1vLybrP32uODyW51NPMX395ko6lcldvDcibUDq6/3CJtQYIqCP+D eHD4MGOHPb2qMmcVE8o6OIIDznY6aOEFSdXT801SIgY4pE1lQe1IyCTJhQDM6JVHCnA8 Q26g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687165079; x=1689757079; 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=xLmeJWd/edsFY2ls/Yz70yLNc/eoAErRFP6oqVGaQzo=; b=h5DdFTXmvGU41F2Mzvv+kw3hg8CUgFnHU9hh46WBeflr9RNdyZqj4fygQC3h/yBZw/ O95JzA0U2uoqq1cL92FaM7IvmIMDoMzuOg2sekNzpd0yEnEepZ3UG4sVrhYWUMyuQ+J2 33tmgU2NpahLnNfMo/q3eF6vzZTOfpHPW14DctS/1Xk56WIkGTBYiO8t36iCFP7kccpP omf9Vr8u8XWPDJCfnNUblZCeDwLLplwJHm1kFJwVvpw0HZZ5u9S+CCtAQWx7C3z+9shO WEyq4ZKeCkFlS946V62moEHaUXu8hGgPeoXwIPcqFgEhewxD5qxba43MBNPZTfUK8/Iq CTNQ== X-Gm-Message-State: AC+VfDzLQMpbdq3fLd6NjEak6kUtlCvojtfpMO1T4QtNSf5122MvN17p yfGBSm5adBGx2+TINJehW139sq8njPTbVmDS5XkOjQ== X-Received: by 2002:a25:ce85:0:b0:b96:4634:146 with SMTP id x127-20020a25ce85000000b00b9646340146mr4203242ybe.60.1687165079656; Mon, 19 Jun 2023 01:57:59 -0700 (PDT) MIME-Version: 1.0 References: <20230616145036.3910153-1-arnd@kernel.org> In-Reply-To: <20230616145036.3910153-1-arnd@kernel.org> From: Linus Walleij Date: Mon, 19 Jun 2023 10:57:48 +0200 Message-ID: Subject: Re: [PATCH] gpio: synq: remove unused zynq_gpio_irq_reqres/zynq_gpio_irq_relres To: Arnd Bergmann Cc: Shubhrajyoti Datta , Bartosz Golaszewski , Michal Simek , Manikanta Guntupalli , Arnd Bergmann , Srinivas Neeli , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.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 4:50=E2=80=AFPM Arnd Bergmann wro= te: > From: Arnd Bergmann > > The driver now uses the generic request/release callbacks, so the custom > ones are no longer called. When building with -Woverride-init, gcc produc= es > a warning about the duplicate entries: > > In file included from drivers/gpio/gpio-zynq.c:10: > include/linux/gpio/driver.h:621:43: error: initialized field overwritten = [-Werror=3Doverride-init] > 621 | .irq_request_resources =3D gpiochip_irq_reqres, = \ > | ^~~~~~~~~~~~~~~~~~~ > drivers/gpio/gpio-zynq.c:611:9: note: in expansion of macro 'GPIOCHIP_IRQ= _RESOURCE_HELPERS' > 611 | GPIOCHIP_IRQ_RESOURCE_HELPERS, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/gpio/driver.h:621:43: note: (near initialization for 'zynq_= gpio_level_irqchip.irq_request_resources') > 621 | .irq_request_resources =3D gpiochip_irq_reqres, = \ > | ^~~~~~~~~~~~~~~~~~~ > drivers/gpio/gpio-zynq.c:625:9: note: in expansion of macro 'GPIOCHIP_IRQ= _RESOURCE_HELPERS' > 625 | GPIOCHIP_IRQ_RESOURCE_HELPERS, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/gpio/driver.h:622:43: error: initialized field overwritten = [-Werror=3Doverride-init] > 622 | .irq_release_resources =3D gpiochip_irq_relres > | ^~~~~~~~~~~~~~~~~~~ > > Removing the old ones has no effect on the driver but avoids the warnings= . > > Fixes: f569143935378 ("gpio: zynq: fix zynqmp_gpio not an immutable chip = warning") > Signed-off-by: Arnd Bergmann Right. Reviewed-by: Linus Walleij Yours, Linus Walleij