From: "tip-bot2 for Zhao Xuehui" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Zhao Xuehui <zhaoxuehui1@huawei.com>,
Borislav Petkov <bp@suse.de>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: x86/cleanups] x86/msr: Make locally used functions static
Date: Thu, 08 Apr 2021 10:48:29 -0000 [thread overview]
Message-ID: <161787890998.29796.15716124525771113183.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20210408095218.152264-1-zhaoxuehui1@huawei.com>
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 3e7bbe15ed84e3baa7dfab3aebed3a06fd39b806
Gitweb: https://git.kernel.org/tip/3e7bbe15ed84e3baa7dfab3aebed3a06fd39b806
Author: Zhao Xuehui <zhaoxuehui1@huawei.com>
AuthorDate: Thu, 08 Apr 2021 17:52:18 +08:00
Committer: Borislav Petkov <bp@suse.de>
CommitterDate: Thu, 08 Apr 2021 11:57:40 +02:00
x86/msr: Make locally used functions static
The functions msr_read() and msr_write() are not used outside of msr.c,
make them static.
[ bp: Massage commit message. ]
Signed-off-by: Zhao Xuehui <zhaoxuehui1@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210408095218.152264-1-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 3bd905e..b09cd2a 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);
}
prev parent reply other threads:[~2021-04-08 10:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 9:52 [PATCH -next] x86, msr: Make symbol 'msr_read' and 'msr_write' static Zhao Xuehui
2021-04-08 10:48 ` tip-bot2 for Zhao Xuehui [this message]
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=161787890998.29796.15716124525771113183.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=bp@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=x86@kernel.org \
--cc=zhaoxuehui1@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 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).