Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6353199rwl; Wed, 22 Mar 2023 09:29:30 -0700 (PDT) X-Google-Smtp-Source: AK7set+9HUH2Wy1vFtMkaUtY3vnVJjp7a+m32GKjjyV7s8bo73E1c8HmX9Pzge0/hZuzmzPNoWbh X-Received: by 2002:a17:902:c949:b0:19c:e405:4446 with SMTP id i9-20020a170902c94900b0019ce4054446mr4252369pla.30.1679502570646; Wed, 22 Mar 2023 09:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679502570; cv=none; d=google.com; s=arc-20160816; b=ICY+2dtci0b/ondWx+nAluSw4naBI8uo3C+EHVxrlpk09pubGS6ZBblTMVDHqV2iNi ZbSB46NMDl8Y9ygMpssDMojnZgAhKjTfbP2y0LCtw5PVhFyRJp2SWwaHbPQLs0QjSF6h b24gbLyLW605EoaUe9Ldeadq2r+36EN3WhdBR75TaSgSzkgPxmAJ/CRmZE3nDdt16oWC 9+fyTNSwbH1pqLAFOtO6yIl7ixMXYdaAgkMJou0NmbvkAOk2BtSzXWYJYBseZHAbTytQ m93hMsXOUwYtBIEdsiGnpBBxcEZVTDWk9kzO1cojsWm/nG//ERo5l2XA1JrEj5vx/wn9 cfuw== 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=QcBh8LbgiZnRhxN9ZOExXV06VdRnER7GdJGafrPv3AA=; b=wNtD35Zh2I1NwApAQcj5v/8uvBEjq5xRi49F4T2pkQvf+DR+AWOxSy7vH8z7wwOgsS YqbrMTfUZGeAK93C69hxN6ChERWG2M64S0DaWa6golJ74Hy/DCY2MFAznE+CFVqC53m0 52zKGWNlzD5cnFTCf2M8PusqOjQiPQPBFA1POuEdUiUq7tjr1oCzXudHUWjjCZB+nQF6 iabI7njNM43b8glkNZw7Z4mbBuvIZea0wMr5l6l1cc8NH1+o2tNqIgNCamylMYSsJMF0 5wevlE9UJlWH/d3A4x8En0p/J4iLDkiNmFDl9mx7e3kdamTNMwvsnbCb5shxvgPeDxuh 2G7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="lLbOg/bI"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902d2c800b0019a95ab6b4esi18070840plc.407.2023.03.22.09.29.18; Wed, 22 Mar 2023 09:29:30 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="lLbOg/bI"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230231AbjCVQ2b (ORCPT + 99 others); Wed, 22 Mar 2023 12:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbjCVQ2O (ORCPT ); Wed, 22 Mar 2023 12:28:14 -0400 Received: from mail-ua1-x936.google.com (mail-ua1-x936.google.com [IPv6:2607:f8b0:4864:20::936]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1B146284B for ; Wed, 22 Mar 2023 09:27:50 -0700 (PDT) Received: by mail-ua1-x936.google.com with SMTP id g9so8554002uam.9 for ; Wed, 22 Mar 2023 09:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679502470; 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=QcBh8LbgiZnRhxN9ZOExXV06VdRnER7GdJGafrPv3AA=; b=lLbOg/bI0Dt7zVFdc55ZLV/hefFjA7ho51BY5gzdLMX6Oyig4MrRdDK9z9blgXY5bO nuxQ0YLJFsW/vCWmqo22bc0rxCbKlPnqOmxyhuuCSjYyKI4Qz4pTH2nCNdDpLUvaqg5s GkeWJJ0gZynt+siiqozduL/YGDbrgyIkiVMLEzSK/KZ1ZsXCyDNH8f5JUNmeGpIE5+4X ROtBj8CelDicuOx9TKlP8rVfW4qCUWByDs1X3vfCz6UQYz6CMVUneVXA4nWQlFRIKIaR pe9EXYZNLwatGCN+mYjBhxl2EpARc3ka7ArZtYZlWC+mtONp0wmC14KjIkvA0TFJ5YEI ESUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679502470; 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=QcBh8LbgiZnRhxN9ZOExXV06VdRnER7GdJGafrPv3AA=; b=Phybs4yCgpOP6gNChKWFVASJEw3NwinNmlcPFJdQZx6eqFTvtH64Y/m/cnxZz/bLsf AcJKuqMpaM7OtM7lTUAWjOWG7hKPir3Fdq35GmnzVOQjaa4zgeB0giE+fsP+dNu0lmPg wVYR/dOFYnhBCQZ21hmgKFhJY7bPsMaTeGwny1xtdVgrkp7JkkbquADDIJDNYcAz0/ra YXIQCQ0QcnEo60mthkFfVByLk5u+Flj8ImFUXNUA947WIpkTuqDHqszLNkZEcFKddoKe 54VWyUFh9YGpoKVJ5ApYeeBrUaSsR1Oyl68cCNsvaT0rapf10C0KoAIu0KJDrEs1glDt 5sDg== X-Gm-Message-State: AO0yUKULDyAfX4LDWvNv4/8phsDJ4sdCygFVVZqrVn/ahPvfb02ySIBd m5g5+2rLpkYh6lwmyRYOFPuCECdLIiBhog2R1qxlwg== X-Received: by 2002:a05:6130:228:b0:68b:923a:d6f4 with SMTP id s40-20020a056130022800b0068b923ad6f4mr3595319uac.2.1679502469910; Wed, 22 Mar 2023 09:27:49 -0700 (PDT) MIME-Version: 1.0 References: <20230319143640.1704735-1-trix@redhat.com> In-Reply-To: <20230319143640.1704735-1-trix@redhat.com> From: Bartosz Golaszewski Date: Wed, 22 Mar 2023 17:27:39 +0100 Message-ID: Subject: Re: [PATCH] gpio: pxa: remove unused gpio_is_pxa_type function To: Tom Rix Cc: robert.jarzmik@free.fr, linus.walleij@linaro.org, nathan@kernel.org, ndesaulniers@google.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 Sun, Mar 19, 2023 at 3:36=E2=80=AFPM Tom Rix wrote: > > clang with W=3D1 reports > drivers/gpio/gpio-pxa.c:174:19: error: unused function > 'gpio_is_pxa_type' [-Werror,-Wunused-function] > static inline int gpio_is_pxa_type(int type) > ^ > This function is not used, so remove it. > > Signed-off-by: Tom Rix > --- > drivers/gpio/gpio-pxa.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c > index 1198ab0305d0..a1630ed4b741 100644 > --- a/drivers/gpio/gpio-pxa.c > +++ b/drivers/gpio/gpio-pxa.c > @@ -171,11 +171,6 @@ static inline struct pxa_gpio_bank *gpio_to_pxabank(= struct gpio_chip *c, > return chip_to_pxachip(c)->banks + gpio / 32; > } > > -static inline int gpio_is_pxa_type(int type) > -{ > - return (type & MMP_GPIO) =3D=3D 0; > -} > - > static inline int gpio_is_mmp_type(int type) > { > return (type & MMP_GPIO) !=3D 0; > -- > 2.27.0 > Applied, thanks! Bart