Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3584881yba; Mon, 8 Apr 2019 23:58:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlg+zkNZS6rcZy6Tuq1t4C/nb3TEna9pIC9un/f45LtA8hmCrFEcIO0PRheR5EGuY0y9aG X-Received: by 2002:a62:b61a:: with SMTP id j26mr35031472pff.203.1554793132760; Mon, 08 Apr 2019 23:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554793132; cv=none; d=google.com; s=arc-20160816; b=Xse29EUAc1FCsRcBTaeRmWul0uECKzUmAGkcT69DHRe9fT/scjIvC+MOCqVmW07Qu0 2ryi49JEobP7tDRsz9+vTM0OSZ425OMw6vXs5hcRrmgyWFfX62RXnkSjNPPAMUFi5uPi RoWXbwiRfUZ5KiCbt0VC75otqLlg2qsXU+DpSKp52krG6nLlfbKZ5kjEDv2hWnd7ZWi+ zvyAzTkg47W19oMzLDKsOc46ISZOMumOZXfhGsi4q36rhH0fv9HOxHkN0zeY2w9orjd0 rJWOAD+gpkYvw5hO0umE5WdZjPmuAg81YaWRr8hYma4ojaSa2M+P34WRsnbz55MyTrxd R/PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TNmp1UQTpabrVhz6/wVfZOAOgu1QvWtf7sb8ek5tZX0=; b=CVda4bln2NNYQ4oj6bvH01uDH/oV7tNq180HRjgdMbRWK71wCSg/Ch7oQjM3m0fZ+Y yJxXOnZK8tTA8sYv4t1drir6cZOez8YaBLclijFD4j21J2ZdTYlZbd8KPzxPUJS9K25M fP2KBtUXitKGvsKQ+Mu/ayiHG7VXk6awQpDq1GdZ8j7aDu4mukV0uasdDTowZR1d+UNV 0T7QPt34RIzuwTwrZmBVwAQ1LGVl/ZKSfX8gy9EXGweArblna7uSP/gzBBwsopQqddMi 04b/cugOz0ZCuhWA28et9Gadbx0bZrNM1cK4mrpTEYLxDN/8LE/RatcDsQsvvdwTkpdT cugQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si23707590pgb.229.2019.04.08.23.58.37; Mon, 08 Apr 2019 23:58:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726656AbfDIG4Z (ORCPT + 99 others); Tue, 9 Apr 2019 02:56:25 -0400 Received: from bastet.se.axis.com ([195.60.68.11]:45259 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbfDIG4Y (ORCPT ); Tue, 9 Apr 2019 02:56:24 -0400 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 58422184F4; Tue, 9 Apr 2019 08:56:22 +0200 (CEST) X-Axis-User: NO X-Axis-NonUser: YES X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id SieTQC0JahzT; Tue, 9 Apr 2019 08:56:21 +0200 (CEST) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 5F29A184DD; Tue, 9 Apr 2019 08:56:21 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 468741A088; Tue, 9 Apr 2019 08:56:21 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3ADC91A06D; Tue, 9 Apr 2019 08:56:21 +0200 (CEST) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder02.se.axis.com (Postfix) with ESMTP; Tue, 9 Apr 2019 08:56:21 +0200 (CEST) Received: from lnxjespern3.se.axis.com (lnxjespern3.se.axis.com [10.88.4.8]) by seth.se.axis.com (Postfix) with ESMTP id 2DEC52CB9; Tue, 9 Apr 2019 08:56:21 +0200 (CEST) Received: by lnxjespern3.se.axis.com (Postfix, from userid 363) id 2846B800E1; Tue, 9 Apr 2019 08:56:21 +0200 (CEST) Date: Tue, 9 Apr 2019 08:56:21 +0200 From: Jesper Nilsson To: Nathan Chancellor Cc: Yue Haibing , jespern@axis.com, larper@axis.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@axis.com Subject: Re: [PATCH -next] pinctrl: artpec6: Make two functions static Message-ID: <20190409065621.2yfx5nqzpuxyj46p@axis.com> References: <20190321150909.3576-1-yuehaibing@huawei.com> <20190408180110.GA15199@archlinux-ryzen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190408180110.GA15199@archlinux-ryzen> User-Agent: NeoMutt/20170113 (1.7.2) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 08, 2019 at 11:01:10AM -0700, Nathan Chancellor wrote: > On Thu, Mar 21, 2019 at 11:09:09PM +0800, Yue Haibing wrote: > > From: YueHaibing > > -void artpec6_pmx_disable(struct pinctrl_dev *pctldev, unsigned int function, > > - unsigned int group) > > +static void artpec6_pmx_disable(struct pinctrl_dev *pctldev, > > + unsigned int function, > > + unsigned int group) > > On arm32 allyesconfig: > > drivers/pinctrl/pinctrl-artpec6.c:706:13: error: unused function > 'artpec6_pmx_disable' [-Werror,-Wunused-function] > > This is the second time you've introduced an unused function warning by > making a function static[1], could you please be a little more vigilant > in your clean ups in the future? > > [1]: https://lore.kernel.org/lkml/20190327050126.12064-1-natechancellor@gmail.com/ > > Linus/Jesper/Lars, should this function just be deleted? I'd be happy to > send a patch doing so if that's the right course of action. Yes, that function is unused and can be dropped. > Thanks, > Nathan /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com