Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2671154pxb; Tue, 13 Apr 2021 07:31:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu5BbZBLnq/D2rlFzRml4Ssm+xNEiD5iXQZ9mrZx0508rPhQKhTVWp1/2zqfBwIzjcrjEA X-Received: by 2002:a62:6202:0:b029:208:f11c:2143 with SMTP id w2-20020a6262020000b0290208f11c2143mr30229258pfb.32.1618324261074; Tue, 13 Apr 2021 07:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618324261; cv=none; d=google.com; s=arc-20160816; b=RXY/Fwxwn3I+zJ6p5Ci4YXpkLAyTlax5VATf/20TZB9jL2oK9pRA+ebLr/lBB2jgVf rh2fDiUEo0tyx6gIBWUOk/rtz0MV3Z7WFCXCIuY2dEL9ykgWtsBA0lKiGDmcvaa+wXPl 0ULjvOPfVDRxQK3iJJgV1zmKKy27TDRPfV/QE82gVX1E+snZP3pxQByCOgGQe6Lp3Pch yiOXzOaev4zRzmyuVe7aJVUABxnY6cfsnZ6WZbGC0Kj3oUq6b1Qq/TrJUuB/+uTO6bjl f4BuP/AjQsuZvSg5vsv81HovVmo0kgALFD2yUZYrkNeHklWXjeGJXs16ZhXvySs2c2xI Jo8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lp0nhIkX91Pf3wD+SL7MH4/JR2CJldd70sy3TxSWViI=; b=nouSdLJpuEMEmEuhTKqLiawNWWc4TOt48xSeIRhld6G0Vczgo5GSNdbG2/JASollfk byeaagJm0CAHBAT/908RFBSz4GA8/GVvPaNyLqmGKGvyv/7oLtc9sJHOT38IiWPg4QPW U45+CYMAa5QFQKYfkJVtYos4m+WavoDJok/9iE5RQIsFGll1YRPZHXHW0ogQmVSHbKYM FKVWQybbmN8/Efen21i3iqB6xkTyZ9AoWXZW7ulEIj9L6oYfWnPPM45Q6rC46/6Z2eLF 7RI/PnsGc7TLi/+1XaxEZtuRJgOyAWGP0HUwa/AMz5aBxyHu+BgXri0O3iFsK9+MXKvL vTRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=x0PyFjK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id il4si2972009pjb.110.2021.04.13.07.30.47; Tue, 13 Apr 2021 07:31:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=x0PyFjK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbhDMKj4 (ORCPT + 99 others); Tue, 13 Apr 2021 06:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbhDMKj4 (ORCPT ); Tue, 13 Apr 2021 06:39:56 -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 BAFA4C061574 for ; Tue, 13 Apr 2021 03:39:36 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id 65so17607889ybc.4 for ; Tue, 13 Apr 2021 03:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lp0nhIkX91Pf3wD+SL7MH4/JR2CJldd70sy3TxSWViI=; b=x0PyFjK05EbY1X1JUnH1hArB1GU/uz9pcDBzZRy8YJHeH1Hr/dHCDfg7J2cFLLp4g5 Q7iZ+V8HD5/SRfnDaLFgTXj2xownGN75yVvu3xsdF648PekGqDxQ3yflzlNOEQdwlc1H 9AdwF6jsK2YTW4TMyOysJ1TFphQJxRgu+NI0gzBiahj3srfNrVIyiyW2OQesr4SdLxKa kolPkyZ/QEyFAIBI+6frBoL63EfQE6X+3uYe6Eafe/SjxpexRt/DlBrJGBnmiJFCEjrS Dm3NMTaejJb+rwgRX1uzvkN5T48jPsroCtv+U9d5o3RSX9MJA6QPaACd9zDOWjKC5AGL TmIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lp0nhIkX91Pf3wD+SL7MH4/JR2CJldd70sy3TxSWViI=; b=IM3Zcj4v/8s9aZKmekf5Uy0+xwR10RV7UmPJrL+qvR7agK8h9akyYLKOXWTu3+4Sbs dx6uX26KU15UMKOvvMkEO3bXokUL7wI3LB7dI5SITzhcKL2piZkf5F/mPT93OUYQje8Z sKOpXngL7QEG6mkVl4VXRRaL4O77he5xU3Q/Mv6VDGtNaxpsjabgBdqS1EDaIqztuNo8 i4Wl9NledJUEn3JbuJGeXJ6Jd7iC3vMzRL8OpmvOhUaFnaZ0DyO9698heS+TkdmWW83k GpKAUw+MoRl+AZlZyLfez5QeTVFVorqRR9msbCbjFTxE1CCZ/OUPJ/7j/5SpBaMABe8r 4Q2g== X-Gm-Message-State: AOAM531cLWRZ7eXnGSvxACoBCqQTk/QZlvD5vuT+74F/kfRX/zPwgcZn dyIfDt3vADVWq6F8ehzECXtkV+OdskEY2vSI2JCAhQ== X-Received: by 2002:a25:2351:: with SMTP id j78mr15135557ybj.312.1618310375999; Tue, 13 Apr 2021 03:39:35 -0700 (PDT) MIME-Version: 1.0 References: <1618193781-35329-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1618193781-35329-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Bartosz Golaszewski Date: Tue, 13 Apr 2021 12:39:25 +0200 Message-ID: Subject: Re: [PATCH] gpio: mxs: remove useless function To: Jiapeng Chong Cc: Linus Walleij , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , dl-linux-imx , linux-gpio , arm-soc , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 4:16 AM Jiapeng Chong wrote: > > Fix the following gcc warning: > > drivers/gpio/gpio-mxs.c:63:19: warning: kernel/sys_ni.cunused function > 'is_imx28_gpio'. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpio/gpio-mxs.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c > index dfc0c1e..524b668 100644 > --- a/drivers/gpio/gpio-mxs.c > +++ b/drivers/gpio/gpio-mxs.c > @@ -60,11 +60,6 @@ static inline int is_imx23_gpio(struct mxs_gpio_port *port) > return port->devid == IMX23_GPIO; > } > > -static inline int is_imx28_gpio(struct mxs_gpio_port *port) > -{ > - return port->devid == IMX28_GPIO; > -} > - > /* Note: This driver assumes 32 GPIOs are handled in one register */ > > static int mxs_gpio_set_irq_type(struct irq_data *d, unsigned int type) > -- > 1.8.3.1 > Patch applied, thanks! Bartosz