From: zhong jiang <zhongjiang@huawei.com>
To: <tglx@linutronix.de>, <mingo@redhat.com>, <jikos@kernel.org>
Cc: <hpa@zytor.com>, <x86@kernel.org>, <rafael.j.wysocki@intel.com>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH] x86/apm: Fix a unused function warning
Date: Mon, 17 Sep 2018 14:01:06 +0800 [thread overview]
Message-ID: <1537164066-39990-1-git-send-email-zhongjiang@huawei.com> (raw)
Fix the following compile warning:
arch/x86/kernel/apm_32.c:1643:12: warning: proc_apm_show defined but not used [-Wunused-function]
static int proc_apm_show(struct seq_file *m, void *v)
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
arch/x86/kernel/apm_32.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
index ec00d1f..f7151cd 100644
--- a/arch/x86/kernel/apm_32.c
+++ b/arch/x86/kernel/apm_32.c
@@ -1640,6 +1640,7 @@ static int do_open(struct inode *inode, struct file *filp)
return 0;
}
+#ifdef CONFIG_PROC_FS
static int proc_apm_show(struct seq_file *m, void *v)
{
unsigned short bx;
@@ -1719,6 +1720,7 @@ static int proc_apm_show(struct seq_file *m, void *v)
units);
return 0;
}
+#endif
static int apm(void *unused)
{
--
1.7.12.4
next reply other threads:[~2018-09-17 6:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-17 6:01 zhong jiang [this message]
2018-09-17 9:24 ` [PATCH] x86/apm: Fix a unused function warning Thomas Gleixner
2018-09-17 9:39 ` zhong jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1537164066-39990-1-git-send-email-zhongjiang@huawei.com \
--to=zhongjiang@huawei.com \
--cc=hpa@zytor.com \
--cc=jikos@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rafael.j.wysocki@intel.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).