Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4363697ybe; Mon, 9 Sep 2019 08:15:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyUMCNE4lIZjy8N3GgmJ/rfSj+yUZeFxEBKBemFXs+ov76YAUBvUqxnWWa5DiMxMc47Gry X-Received: by 2002:a17:906:4887:: with SMTP id v7mr19619549ejq.158.1568042144500; Mon, 09 Sep 2019 08:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568042144; cv=none; d=google.com; s=arc-20160816; b=rt36tlg8IX0eG01QGcSA+kr7S3kLQrmuIhgKxKQjo9Qpulrg9365qZEAcmbyUn8Mbo WI16YcqMHld6iydWBkX0WPOpOmAveYvHyhh6c95yFtwElOvcYQ8FFAZu/Tc81jQY0p5a 6wLHjw7Wi3eCziKAK8SVl8njZbPFdAbf+7u5B79SmQrLSerPU66L0Q7FZ3EbqFZ8KEUf jgYHw3/EdTToK6coZw77apDtvduOOny49lLygr4+DsNCLNtXcOIMMSIYxIv9lGu/BNtL ziE/HJO4hXT7bquJb89FzX7nkamAfgE/+WV7M1/RVXygm0+vMjqJ0Vjc/zPL6rexVKFk 0J2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4zcZY2ZvVHQa9ht2aWauH+wTlb/io5T18AZzy2g9qUc=; b=XGKqMR2/kQHCL7vUC95L6jR217YXUq3QSAowaYwVXROTbeITABqEOx8gI5ceW5gPnW P/waLTSnMd4YSKlNQui8oYRJm7OTKELr7FLSas7KHhq236iH45MrI9LkIZfp+cXNy6bR HnMzd0sDo/SXrGSP/GAc17z5+zO4RrHlDjeZLyhg6KZ11ejBGY/fA7zilvlEcx0meMD3 UmZXBmaiQOLBa8K39sCE4WiZv3hPNLEecdn2GtlxLsWVZ8FUN7F+FXIU7emg7sVm7UQ0 F32CRR7448zM/YfONbx6qbkqyy7znsWAGIPZFschY/aopbO6roZllg/GqUNwsPYzrA67 ZtcQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ot7si7732309ejb.87.2019.09.09.08.15.19; Mon, 09 Sep 2019 08:15:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389802AbfIIJWQ (ORCPT + 99 others); Mon, 9 Sep 2019 05:22:16 -0400 Received: from mga18.intel.com ([134.134.136.126]:9306 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728706AbfIIJWP (ORCPT ); Mon, 9 Sep 2019 05:22:15 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Sep 2019 02:22:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,484,1559545200"; d="scan'208";a="213859213" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga002.fm.intel.com with ESMTP; 09 Sep 2019 02:22:13 -0700 Received: from andy by smile with local (Exim 4.92.1) (envelope-from ) id 1i7FsB-00061C-QA; Mon, 09 Sep 2019 12:22:11 +0300 Date: Mon, 9 Sep 2019 12:22:11 +0300 From: Andy Shevchenko To: Arnd Bergmann Cc: Mika Westerberg , Linus Walleij , Chris Chiu , Kai-Heng Feng , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2] pinctrl: intel: mark intel_pin_to_gpio __maybe_unused Message-ID: <20190909092211.GN2680@smile.fi.intel.com> References: <20190906185231.1081695-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906185231.1081695-1-arnd@arndb.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 06, 2019 at 08:51:59PM +0200, Arnd Bergmann wrote: > The intel_pin_to_gpio() function is only called by the > PM support functions and causes a warning when those are disabled: > > drivers/pinctrl/intel/pinctrl-intel.c:841:12: error: unused function 'intel_pin_to_gpio' [-Werror,-Wunused-function] > > Mark it __maybe_unused to suppress the warning. > Acked-by: Andy Shevchenko > Suggested-by: Andy Shevchenko > Signed-off-by: Arnd Bergmann > --- > v2: use __maybe_unused instead of moving the code > --- > drivers/pinctrl/intel/pinctrl-intel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c > index d66fe2b4221b..1f13bcd0e4e1 100644 > --- a/drivers/pinctrl/intel/pinctrl-intel.c > +++ b/drivers/pinctrl/intel/pinctrl-intel.c > @@ -838,7 +838,7 @@ static int intel_gpio_to_pin(struct intel_pinctrl *pctrl, unsigned int offset, > * > * Translate the pin number of pinctrl to GPIO offset > */ > -static int intel_pin_to_gpio(struct intel_pinctrl *pctrl, int pin) > +static __maybe_unused int intel_pin_to_gpio(struct intel_pinctrl *pctrl, int pin) > { > const struct intel_community *community; > const struct intel_padgroup *padgrp; > -- > 2.20.0 > -- With Best Regards, Andy Shevchenko