From patchwork Tue Aug 14 09:18:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144156 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4107221ljj; Tue, 14 Aug 2018 02:19:50 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwWwsvQ9Y7UryfZUfDs8GY+LkU0KbuBUORyGMCDloSxux9alHnBG6osYdmyNFz/4ZlkGKD2 X-Received: by 2002:a62:1219:: with SMTP id a25-v6mr22651075pfj.104.1534238390411; Tue, 14 Aug 2018 02:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534238390; cv=none; d=google.com; s=arc-20160816; b=Fu/EwQrlzOCvvHzAKLsDH8dWCoP5w/VFWLp0UWZYUaSEkStcJHZCdP4DEPSFoF5uI0 HBwbGLsxEoDorGYtybEd2ymj+35gJPAmjw2/omoiWas9UvQamgz8bxdJboyiatu0htRH XmeIZ/3tg9Zg2+ow4RZ/bKtUIIT52NKWwOWdqkZRqYGF9I8aYwE5Q/C3zPclXLKGTio7 a/gW1oOwt/esCvTWGeeG28SbLGT0uD0gevB3+uCS/p+zqdrB6OdB2ZBqzKtHIa6BuFjO kqk8jhLYDOt6ndLifGNwPjP7+l0QcX4gVuZ2pFWCgQ9pUqHnvBfphGrzS620Un+UZcN9 eBNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=nB9z5kdI/o8Dwb1IFaXHKvFwQJUH1EF/ml6Igj8KcYA=; b=TITruCY/iF6dAMbqlh9YHmvaMVa3c7WnGzQr24KgdbfkrT7og+fivL6k1UPZZSPC2p bZJf3CyfV6NKCkjwNzyvwE6m+OTkmmN/g7Tv7QDNgt7hcorlM0JobbGeRrkpGV/WHK9f CPeG8H631yBqwT9xi2isAGdg9NdfFgBi+tDGEOATQ+kwmmfyG8dG3n2cbHssNdrIyVIb 16xnCE7HEFgfb7DIcwCseD+b6QSqRaWuvh4hCvdqNsmzzsbiyINoZlQln7hC53Dhj0HV h5uv3cYXyUfr88vnAbp8MjA2hz4xKtpIRImFsRZUSCv87o/zrss1i2Z/HMzP5H+szpGw QlwA== 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 h1-v6si16045560pll.416.2018.08.14.02.19.49; Tue, 14 Aug 2018 02:19:50 -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 S1731813AbeHNMGG (ORCPT + 31 others); Tue, 14 Aug 2018 08:06:06 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:47064 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728101AbeHNMGG (ORCPT ); Tue, 14 Aug 2018 08:06:06 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MH9BC-1fbly40z9G-00Dqbw; Tue, 14 Aug 2018 11:19:30 +0200 From: Arnd Bergmann To: Alexander Viro , Russell King Cc: Christoph Hellwig , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: rpc: mark ecard_devices_proc_show as __maybe_unused Date: Tue, 14 Aug 2018 11:18:46 +0200 Message-Id: <20180814091904.2186262-2-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814091904.2186262-1-arnd@arndb.de> References: <20180814091904.2186262-1-arnd@arndb.de> X-Provags-ID: V03:K1:TuvXcBZLzJWevm+NCljyFt6YA3ntRuhyHXRh9HbxkkRPYDpmi8D ozDN+oJLLiRPmlBS3LlPvCTgjN/aGMT4/Gap3JwaO8/lpeV+bRS4UhWexu5hlFDlxcr/Nme ljtCQqHxSBhRKMWZLZBOeEc9ZGAOkR5fI43snApIAGfbInsBs2RIu2XUC7H6StAZtNWXTZ2 PvPx62ul5CcyRsxjE1TyQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:lmnb6dFe+hI=:HcVHHxtKV/sZg0qku12Ir+ ooPhY71bWzWn6hHEb/45dv0k2WILH27HizedHc+zDDIglfifiAZVa+dilp2xGeNWuC95OnouT 9MuoZzWIvOj42kjedVqq2omnZjaCtNpwg1mNJvFrUh40T8eXy2eYvJ08aZCX4rvrNybblPAXi nEGmF6slJ4Mmm6KASsRqBALsQCxkN+c3L/KEvQNZQOqho6DxAIoL4LkVHnKEk0hZs8gJVNKTx SRAiQXHYPuDdPnyo6UrBGm/aNxqHsQQiWk5j/uj+kWzOhmMdkZRvppm7WukOOoFwfkqdTcxko S5gyv2au3MUyjAu9cF/YeZ+MNDF18LDuRbb5VColGauAlRnQXswPcL82EEDejpnGWdI2wHOgj 1TlwteSndlYm+L8yfLlFv6iIc4bK54sO7xZBOYAJUBHvEMaLectYjo3qfFLzRzVDbHDDBaVQh ITXxxH4MpNxDoQoHQ+gQxng54jH2lwcPHkeB7LcU4SRaasOTn85PDzIN5kcsB1lq9Y7Fux4KI vLA75qI1bKal1GNSxUB9hf99YcxES9d4rx0V/Ci4ttnyGAoWAY9hzbzF0VVOX6U2C7k9Qv7Oi chwhh0WWNVsEprdBnWtMkD+rICL++xslq36VCrneko70K5b1jihuVFKbsxRZUPY8tPd90iREF CjGH/xjqQ/S42IlKP6CpUzS8YI7/xGKBfVkqSUiUlCUPys8AVsXaf9oQFQlYd/O//V08= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A new build error appeared with CONFIG_PROC_FS disabled: arch/arm/mach-rpc/ecard.c:646:12: error: 'ecard_devices_proc_show' defined but not used [-Werror=unused-function] This marks the function as __maybe_unused to let the compiler drop it silently. Fixes: 3f3942aca6da ("proc: introduce proc_create_single{,_data}") Signed-off-by: Arnd Bergmann --- arch/arm/mach-rpc/ecard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c index 6fb51d49ad26..761a629f9e9d 100644 --- a/arch/arm/mach-rpc/ecard.c +++ b/arch/arm/mach-rpc/ecard.c @@ -643,7 +643,7 @@ static int ecard_prints(struct seq_file *m, ecard_t *ec) return 0; } -static int ecard_devices_proc_show(struct seq_file *m, void *v) +static int __maybe_unused ecard_devices_proc_show(struct seq_file *m, void *v) { ecard_t *ec = cards;