Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2292359ybe; Sat, 7 Sep 2019 12:37:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy/S4bMOQ+TDdDH8k7JNowd8tOmHp8aCq4hv0iKiz1JAZ6Moyh12vuEOBI46irmxAwluqD X-Received: by 2002:a65:500a:: with SMTP id f10mr13983144pgo.105.1567885055947; Sat, 07 Sep 2019 12:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567885055; cv=none; d=google.com; s=arc-20160816; b=RfQbE+xcvVnCJ6Dq3+LGDiwKb7dFgBogtE4rPcq0sudTvC842VMSnevjzH68X6asK7 bEYHdjs2MaSmfZzHYe3AmivfsAKMXpY4cZuJ5Wvn59wHfNT79Gru/MHfb7Vrmu0TiE8G SszeV3QmF1KFHAqNX3iwhl/wlRVfM5u4miYNm6hx2OYXVWRiupeioI3jmjj8KBfRXtfg fEe7TFnxvGy9dbquYwGabea+2Ga2bRU3ZEmw+gH1tMSKfGHbmDXMBhTyrC7I5t3pnhcW 7LG2AsB1voQs/K6t0zxMJDZIGKdfL4EnoXC8Wn8tT3lY7oBBZeZ6QKQw5etRlAX1DOvI vryg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=d1WylWvn88/U6apGHSmyvrQk29bC6LoumF8P3iB+t64=; b=qRc3VlA8tZE+YHvmauSc0DhF2ikBFZaOE8oFqkZkIkxZNr4hZ40mLEPX8KiMPyKmOf XirN1mMb9KrcTvIWMW3Ap1/5djwWxAG2Vthdum/nEBXX4qbosBXG99fBLF/7dkCtUXf/ UKRkfodqXOrPD8uEpYR3YNODpgugQvCugeBxk9GuDkweACHWU5S0ZaeLO06BAxVW2vWv R05KJ0RyhQQCbdzMUJ2ev+cBv29pZ70Uc5K5di4TJKsRd3bx3VMPSPWNiaSODDkhBwu6 De2qEz8208h3/5BjUD5Q1oFMDHn4wIRv/uBnBKU3UFo1GYh3ppNB5ccDfixK4G8ilA3p leDQ== 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 l10si7706207pgp.411.2019.09.07.12.37.18; Sat, 07 Sep 2019 12:37:35 -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 S2390111AbfIFSwj (ORCPT + 99 others); Fri, 6 Sep 2019 14:52:39 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:33441 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733067AbfIFSwj (ORCPT ); Fri, 6 Sep 2019 14:52:39 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MBmI6-1i0lxs3B0O-00CDCx; Fri, 06 Sep 2019 20:52:32 +0200 From: Arnd Bergmann To: Mika Westerberg , Andy Shevchenko , Linus Walleij Cc: Arnd Bergmann , Chris Chiu , Kai-Heng Feng , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] pinctrl: intel: mark intel_pin_to_gpio __maybe_unused Date: Fri, 6 Sep 2019 20:51:59 +0200 Message-Id: <20190906185231.1081695-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:LY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m4oFeSbS4PaSB4W10l/ 3mCYFqiROy5RO9MfU5a5EIwdwIkhxjYpqsEnrwzq4C6GSv3vmQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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