summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorZhao Xuehui <zhaoxuehui1@huawei.com>2021-04-08 17:52:18 +0800
committerBorislav Petkov <bp@suse.de>2021-04-08 11:57:40 +0200
commit3e7bbe15ed84e3baa7dfab3aebed3a06fd39b806 (patch)
tree136326b03988aacdf730b4d5b8e2cfe3e2b48b50 /arch/x86/lib
parentdda451f391eee5d68db3ca87fd8b2a42c8c2b507 (diff)
downloadlinux-3e7bbe15ed84e3baa7dfab3aebed3a06fd39b806.tar.bz2
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
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/msr.c4
1 files 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);
}