All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhao Xuehui <zhaoxuehui1@huawei.com>
To: <tglx@linutronix.de>, <mingo@redhat.com>, <bp@alien8.de>,
	<x86@kernel.org>, <hpa@zytor.com>, <linux-kernel@vger.kernel.org>
Cc: <yangjihong1@huawei.com>, <zhangjinhao2@huawei.com>,
	<zhaoxuehui1@huawei.com>
Subject: [PATCH -next] x86, msr: Make symbol 'msr_read' and 'msr_write' static
Date: Thu, 8 Apr 2021 17:52:18 +0800	[thread overview]
Message-ID: <20210408095218.152264-1-zhaoxuehui1@huawei.com> (raw)

The symbol 'msr_read' and 'msr_write' are not used outside of msr.c, so this
commit marks them static.

Signed-off-by: Zhao Xuehui <zhaoxuehui1@huawei.com>
---
 arch/x86/lib/msr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/lib/msr.c b/arch/x86/lib/msr.c
index 3bd905e10ee2..b09cd2ad426c 100644
--- a/arch/x86/lib/msr.c
+++ b/arch/x86/lib/msr.c
@@ -36,7 +36,7 @@ EXPORT_SYMBOL(msrs_free);
  * argument @m.
  *
  */
-int msr_read(u32 msr, struct msr *m)
+static int msr_read(u32 msr, struct msr *m)
 {
 	int err;
 	u64 val;
@@ -54,7 +54,7 @@ int msr_read(u32 msr, struct msr *m)
  * @msr: MSR to write
  * @m: value to write
  */
-int msr_write(u32 msr, struct msr *m)
+static int msr_write(u32 msr, struct msr *m)
 {
 	return wrmsrl_safe(msr, m->q);
 }


             reply	other threads:[~2021-04-08  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08  9:52 Zhao Xuehui [this message]
2021-04-08 10:48 ` [tip: x86/cleanups] x86/msr: Make locally used functions static tip-bot2 for Zhao Xuehui

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=20210408095218.152264-1-zhaoxuehui1@huawei.com \
    --to=zhaoxuehui1@huawei.com \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --cc=yangjihong1@huawei.com \
    --cc=zhangjinhao2@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.