From patchwork Mon Jan 25 15:57:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101114 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1439989lbb; Mon, 25 Jan 2016 07:58:35 -0800 (PST) X-Received: by 10.98.40.194 with SMTP id o185mr27162992pfo.76.1453737515736; Mon, 25 Jan 2016 07:58:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w83si34458452pfi.121.2016.01.25.07.58.35; Mon, 25 Jan 2016 07:58:35 -0800 (PST) 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 S933298AbcAYP6d (ORCPT + 30 others); Mon, 25 Jan 2016 10:58:33 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:62700 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932853AbcAYP6V (ORCPT ); Mon, 25 Jan 2016 10:58:21 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue004) with ESMTPA (Nemesis) id 0M5tBF-1aD6bJ2xvl-00xpYR; Mon, 25 Jan 2016 16:57:52 +0100 From: Arnd Bergmann To: linux-pcmcia@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, Dmitry Eremin-Solenikov , Linus Walleij , Russell King , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] pcmcia: badge4: avoid unused function warning Date: Mon, 25 Jan 2016 16:57:32 +0100 Message-Id: <1453737465-1960022-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:ZyjCEbuFaCurb9PtmQTtFyr+vN+E0WC/ISyLXSMA5geLPpgReAr lYWJVNw0FYwTE8P02vVdl0/1FaD8si1QPVy+nKW097/DlPMtwTx+whrmcjj+59W5+dMRVo7 6oDbaVLpihutp20N1d2bDXLYYGRZTKH1unguSQgjOF9xUmLMTad4OnMfX0U3Qo+BKfKyX1e rE67uXWatl1PdQDJrQCAQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:wB7SS6QDmDI=:ALHi6akweVLiVNvGDxhMT0 gQYOZZOEDURaIa63WQ8AXjN73T18wnYeRrHpSjB/dZs4pbSlA+lFgTQ9HXyCdkCGg3z84qkAr SB0JM6fgYhCMByFRWAAIQ+YvpLGCPPo/9oK51iJRvJgj/Yqoi89VUMwbBsY87jf99Kxp9m7vh n9qOltjvH4DW9npLko5LeVSM6mYxvVJsXF8utj+/sEr8kd2wh1NSEK1Rd6hJ+HU0MO31UxU7q OUU23a70VgMGCKJr6mvEAQjmiTUp9D77MVsb07B4rzyGLH30AOeTVkdWsGPhKUe38sRDLJcUM Rs4it5weByUc0lfNDmpWUzI2gozFsiLED+bqX5j7g72sOpH84/rOB1dE9yDfSXEW+p+UbLRtH vwxJ/KKbiVBtt7UZSHrmMq4RqOiMV0ggskm79K1o/ZhGSb/aAdv2HWFVxLunKn4/dEcMIUi+j Xtvf4t+85btJpM8VfNB05ykBG7dspoP8DbGP3/IRfB1e0VSEx8emnaCjHeG4GqIH4f3r7FAAF QF+fFpwo49JdVwXBhz1IqBWmBHAW1oe192EwD1s5/WrJy0Oc3Z/WDhZ6eipOGD845K1Ov7c04 5A6FH8ZM8QhLcqfl/cIZA4w1SKNW29NV+ZRwrU/ARa1op/+mKRJ93UK3rzq6pJbUJAKVqjKNk KMKJkdCVMiroGNDhugjb/4s2Mp3ZlB8SX787fog68LtO7cAE9HyKCBxbyVDmU1bM5DsM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pcmv_setup is only used when the badge4 driver is built-in, but not when it is a loadable module: drivers/pcmcia/sa1111_badge4.c:153:122: error: 'pcmv_setup' defined but not used [-Werror=unused-function] This adds an #ifdef to avoid the definition of the unused function in the modular case. Signed-off-by: Arnd Bergmann --- drivers/pcmcia/sa1111_badge4.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.0 diff --git a/drivers/pcmcia/sa1111_badge4.c b/drivers/pcmcia/sa1111_badge4.c index 12f0dd091477..a57dc1042ba0 100644 --- a/drivers/pcmcia/sa1111_badge4.c +++ b/drivers/pcmcia/sa1111_badge4.c @@ -150,6 +150,7 @@ int pcmcia_badge4_init(struct sa1111_dev *dev) return ret; } +#ifndef MODULE static int __init pcmv_setup(char *s) { int v[4]; @@ -164,3 +165,4 @@ static int __init pcmv_setup(char *s) } __setup("pcmv=", pcmv_setup); +#endif