From patchwork Tue Aug 14 09:18:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144155 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4107105ljj; Tue, 14 Aug 2018 02:19:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPysBfJUmIjJiNDh14Y+kY7pCjof6yl9DlYl0px3Glrw+yxP4R+03Y4gfvhYq6I7uCJQTRaG X-Received: by 2002:a62:1b4a:: with SMTP id b71-v6mr22056931pfb.221.1534238382739; Tue, 14 Aug 2018 02:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534238382; cv=none; d=google.com; s=arc-20160816; b=eRM6VqAkMDg2wIt9/2cydmPu/rMk0qpYKnnlhwqV4DF0nt7nlPy94ZZaJQNlbGIpsr MWbtjULC8QMHYBsYFU3Xv7nX+8E366TZl5cB08kW+Qvmomx/oXwsI1LDCY1TvibNrWqU aL9pikBylJGxOhgopEWVHRvlOejBdtMoQKfVt8StoS2YOCqP30weiIt3D5ctAA73IrI4 nf4H8erThgQJXl7JZSOhfA5U1/AjP/xmKClTwpo5zD3NS7er9JTGpHN0ArD4GQlRJ8xu vamnKz7WDilTApe+5Rwpdd+n2cUuoPA2bD6xdQ0vuKUqUO1krOWScij0A2F2EMnnSLw1 PgaA== 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=ZRjmXhctxnKZODxlChkleCVyhMiQXKegsXvxugEzDwU=; b=xEvGPevVtlPs6AbF50XLhnTGX3M0o1aua4CLQqxVDNUT7MSBtXo7szRNoLxvN14FoR mV6AcCmH6UwnzIhC0tMYtzeZANxEYC2nEqsqyyZABg4ybYmf/GFVNcBTB/ql9tUgRq6j mobatOanZzjFgNdKxZdI1DXstKT+F2xjxcJ1NXPSkp9X0sLbwA6FaG2+iQLrbhX2hF7G D6w7QLc5yPzGejJzmppTmyN8S6ocBcmGYQCViXB8Gu5A4OA1Xw4+Qz5r0YaOsyw+Isvc CXEggHmEHToSC8H1ZHmj1RKxDPfFJX3+8B5mpZtj6Ro7pu59AvYPLdamolfLdN1/nmhK TafQ== 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.42; Tue, 14 Aug 2018 02:19:42 -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 S1731556AbeHNMF6 (ORCPT + 31 others); Tue, 14 Aug 2018 08:05:58 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:50048 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728101AbeHNMF6 (ORCPT ); Tue, 14 Aug 2018 08:05:58 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0M5CnP-1g5d9o0UxT-00zViv; Tue, 14 Aug 2018 11:19:07 +0200 From: Arnd Bergmann To: Alexander Viro , Jiri Kosina , x86@kernel.org Cc: Christoph Hellwig , Arnd Bergmann , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] x86: apm: mark proc_apm_show as __maybe_unused Date: Tue, 14 Aug 2018 11:18:45 +0200 Message-Id: <20180814091904.2186262-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:TPE3A5+lvBRh6ZNmEst+uvvh7Ewirgg7myx05RLeD8uKaTf/OgZ nBhtl5pSOib9WqR/1zTqgQ8DZEOyw3LlBKQv0i6MuDT1taEU0l4K7Dup+NfRy4TD/rbVJCf cWbf4POaX6VXZNaeUZwRdV7JWFV7ys7/nFANAIXGCoHLoBHzJxvhoyDCzXFt9hq+Uwb4ugb ldO8WcZh+D1mAvCk167vQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:mmUeFJAVrhY=:rj6WeoUacqLMlIxtsJ+8e5 UNMxcX5q1BtUoG+XY4oGhXVp+mihiqyMNj220kr+se0f8qefYb/JpsB2s8woQRuiorTl7V1d0 RXCOeCUJnetHOWoOItygtkBbF2nse1Ho+yllNVspDpl8FPYvEEccFCMhdpQJqc/6waoxVx1sV N9RokeCCs5pb6YoniQgXkTC4UCD9gNwbFGTxYmpzru+g0sjDi+FgwHjUFzHOt+sTJMMcTzuq6 +sivVR26nclwiISh05pX8OdpI7W4VZIu6AhG6HR3rk2I44ZBVvWtK/4uWflXG0Uxu2jSzxITx FVWbU9VGQ1cUc9iNnDwGspDnzOgVSjQJpH+15JRt8rDME7ptpN/ZtV7FXhQF9uNH54usIZZR/ /ySw+PU7hAwxTPrX+WGxkfOXLhr/2R9bKQ82sgWPwmN8lg5ELGxha+VYx1/w1Eyrgf3EWr43x MOt9uP6frAaLeAtSivFTeYCChdNeuwqIklMuJNurQnbim30z0XO0yqkPq6HjudgbvYQbK8Sx+ r2xSfo/JkXMuZD7K1RBoGaeZnGusBT9RAqmZyPCzP71KGaBZ5ZbmjqGwWZ2ARxgbBxfISja+4 DQRiTl52MqzmoAD73Gn42tsctsAD0qRKIqk/QqBYmYK7/Z25zf3+UqMpjt7CqtU/znSLsspfp 7q27duFQcMED3KID1tFUBacWRV6ap/qefPr+Dvgbym2op8QQMsyx/n+16/maNMJJG6aA= 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/x86/kernel/apm_32.c:1643:12: error: 'proc_apm_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/x86/kernel/apm_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index ec00d1ff5098..79b5ed518471 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c @@ -1640,7 +1640,7 @@ static int do_open(struct inode *inode, struct file *filp) return 0; } -static int proc_apm_show(struct seq_file *m, void *v) +static int __maybe_unused proc_apm_show(struct seq_file *m, void *v) { unsigned short bx; unsigned short cx; 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;