From patchwork Mon Sep 11 20:11:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 112237 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4274094qgf; Mon, 11 Sep 2017 13:12:07 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7R1AiF0S9uqH9hbkZt1tqRCHl92fMBqiijjP9wjw5VweG2xtsC0dMWtSVkbloy8aBtODcp X-Received: by 10.101.91.2 with SMTP id y2mr7596891pgq.65.1505160727542; Mon, 11 Sep 2017 13:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505160727; cv=none; d=google.com; s=arc-20160816; b=QMz8h7MdwMUs/3WkkGYwCX+UUx/sCDD0CZVykGtx+QAMKc/85PtnI0wghxIUzs35vC Xq5qclXDA0zzlhYVm5zVGusQaDOvb6AECxOvbAtIo8hQNq2raDKSyv8kNb5AppqCZLTd hqOxSLaU/4chkyeetZMJW9d1goVO+NsS3ftoGxGgjBF/wW9/DFE/vZ42W+dB07dlfiwe JaBi8oXaxoQQWJy90ALQ0N/wQylJHgxVFqxWzNBrs/BLwkw9ALkFIsZS6OaWjpCph9EI I6IbxgYPPIDNDVbPaOQXYs2Ml4JOZSM5cfs/CQ0hJ8W+KBKB+2KhhVq8TcG0DBgfUJUZ PHwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sO0yNQVdwI07fxt2bIeQ02o/WafXOAkwY1eIopC1GMc=; b=wf84/Eyan5p3z4c9B+q08gPXkAnZSP+K6fZQjr438fad4oAoKH2a9GRjy0MeasQzrc Ok5OvfGPIiuy5tuOam46MhWCevBlpfS4BHiAmRbd44z5xjzUxhw1lx0J7iWGu1Sfg5sX KABoXxDP9Riax52xaNpYOzZrvz2zenlwsKijT+OeVs4H77FXgre6SimEjq+uOaM/rg/Q /LqDlyzdByp0E/llbG5hORdakobpbRSNp0dGWCAdkRiI9vlMzTzGiT6s+GCVEBmZGg4v lw2DBVZ9TgOEMbezIBTrmRx3HmAkVDROKzog6a7LL/eHeLGVrBvHLVjMQPMJBC6bimX+ OTtw== 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 z2si7342145pll.244.2017.09.11.13.12.07; Mon, 11 Sep 2017 13:12:07 -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 S1751251AbdIKUME (ORCPT + 26 others); Mon, 11 Sep 2017 16:12:04 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:49390 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbdIKUMD (ORCPT ); Mon, 11 Sep 2017 16:12:03 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0M5UJE-1dXVDs2aM4-00xZFa; Mon, 11 Sep 2017 22:11:36 +0200 From: Arnd Bergmann To: Andrew Morton Cc: Arnd Bergmann , Russell King , linux-pcmcia@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] [RESEND] pcmcia: badge4: avoid unused function warning Date: Mon, 11 Sep 2017 22:11:15 +0200 Message-Id: <20170911201133.3421636-1-arnd@arndb.de> X-Mailer: git-send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axJA== 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 --- Patch was sent on Jan 25 2016, and on July 21, 2017 but got no reply. Andrew, could you pick it up? --- drivers/pcmcia/sa1111_badge4.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/drivers/pcmcia/sa1111_badge4.c b/drivers/pcmcia/sa1111_badge4.c index 2f490930430d..93a5c7423d80 100644 --- a/drivers/pcmcia/sa1111_badge4.c +++ b/drivers/pcmcia/sa1111_badge4.c @@ -144,6 +144,7 @@ int pcmcia_badge4_init(struct sa1111_dev *dev) sa11xx_drv_pcmcia_add_one); } +#ifndef MODULE static int __init pcmv_setup(char *s) { int v[4]; @@ -158,3 +159,4 @@ static int __init pcmv_setup(char *s) } __setup("pcmv=", pcmv_setup); +#endif