From patchwork Mon Jan 25 15:59:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101111 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1440634lbb; Mon, 25 Jan 2016 08:00:01 -0800 (PST) X-Received: by 10.66.230.201 with SMTP id ta9mr26901792pac.52.1453737601125; Mon, 25 Jan 2016 08:00:01 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bs10si34434187pad.73.2016.01.25.08.00.00; Mon, 25 Jan 2016 08:00:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933347AbcAYP76 (ORCPT + 4 others); Mon, 25 Jan 2016 10:59:58 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:57793 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932879AbcAYP7x (ORCPT ); Mon, 25 Jan 2016 10:59:53 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LyDvp-1a11la2sk9-015do9; Mon, 25 Jan 2016 16:59:19 +0100 From: Arnd Bergmann To: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Alessandro Rubini , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: nomadik: hide unused functions Date: Mon, 25 Jan 2016 16:59:09 +0100 Message-Id: <1453737557-1960171-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:UI+deu1Q57ZHmoMzYIKyH/3uXa6wp41fiCkH5B2KsFg+fTO6PmF ZFx5tQtHTVHy6HB6lNism/SOQxxCxAYRQxhc3NaaMtSjuMfyh3RhrmiCL2SO58Bk/n0z6gN /TUykgDbtvCw5QbIAfcSeF+crdTpInOrYWZ0Co3uvkM1QDcro6buDus5+si7lx9Kb/NhOK4 ONIQ+d7tqvC2wSo8N9kPA== X-UI-Out-Filterresults: notjunk:1; V01:K0:NL7eiwlyZP0=:a3QwyWg3wrAlAyKwst74G6 mKH1PmheN0CZZx0AWgsdJevQcQDZzJvvUU0I26tgpScg/0h+FD5HYZFUbPKIYThAu62DsmBK2 1iMq3qlqTLZFIEC/cW3nORhw5/0wYUneb5FY8CM1b42/Iu7DBDJJ08c8fp8I5jLsJfNv9dRyE ld/2OUPkbZL8VNuRCMuIXW+R40kM1hK7IO+gWwHcqcuObdRQT73YalLRhbflNpYYVsRl9kRK/ pFBNPN48yDgEvwDM3f1GJGCrlMAi3S7X7LbiECLOhZhDri4CWfKjvzYPao2AzEqGlDGlAN1np vvNZyoTnRXpfAhpGgs6X1D+Qa0wdK1glP4L8DraC6bI5ZSfDHVCcR3Rr8QdRdLp7iuAzNHtZw KUOIRSirqtXf/P9nM4IDa/EU0evDPBnMw0IiZRUMP5/aPQJVK2IcCEJ5hprPruAj19c7EhKmb OaSwjStn8W28zDt1YI+KtoyS/us0EIqyGkIkjf3LQRJbHqG3mZbWKf1cMMyaORQGcjzhzzW/e QsNUteZ7rbcKmM5nWoWS7v+D9qQB/ID7zrhd/y+j/dXY2TSNB2A3Y0PyW0Z419EZaNBdbLYNX OlLe8WX5G2mJedZeLV/cYusraGogHxL91sIzwQNkn3zLVAi3XYPjQPPE1ewcjeya+dEAcfqVR WoWs+DnWfDayU6nSxXW2CR9XqxYsVXUEnREfjac4me1VkwZ1tWHzHL96kZwGVUEV3HjU= Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The nomadik pinctrl driver has two functions that are only used for debugfs output and are otherwise unused: drivers/pinctrl/nomadik/pinctrl-abx500.c:194:12: error: 'abx500_get_pull_updown' defined but not used drivers/pinctrl/nomadik/pinctrl-abx500.c:471:12: error: 'abx500_get_mode' defined but not used This makes the function definitions conditional to avoid the harmless warnings. Signed-off-by: Arnd Bergmann --- drivers/pinctrl/nomadik/pinctrl-abx500.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/nomadik/pinctrl-abx500.c b/drivers/pinctrl/nomadik/pinctrl-abx500.c index 085e60106ec2..1f7469c9857d 100644 --- a/drivers/pinctrl/nomadik/pinctrl-abx500.c +++ b/drivers/pinctrl/nomadik/pinctrl-abx500.c @@ -191,6 +191,7 @@ static void abx500_gpio_set(struct gpio_chip *chip, unsigned offset, int val) dev_err(pct->dev, "%s write failed (%d)\n", __func__, ret); } +#ifdef CONFIG_DEBUG_FS static int abx500_get_pull_updown(struct abx500_pinctrl *pct, int offset, enum abx500_gpio_pull_updown *pull_updown) { @@ -226,6 +227,7 @@ out: return ret; } +#endif static int abx500_set_pull_updown(struct abx500_pinctrl *pct, int offset, enum abx500_gpio_pull_updown val) @@ -468,6 +470,7 @@ out: return ret; } +#ifdef CONFIG_DEBUG_FS static int abx500_get_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, unsigned gpio) { @@ -553,8 +556,6 @@ out: return ret; } -#ifdef CONFIG_DEBUG_FS - #include static void abx500_gpio_dbg_show_one(struct seq_file *s,