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
This commit is contained in:
Zhao Xuehui 2021-04-08 17:52:18 +08:00 committed by Borislav Petkov
parent dda451f391
commit 3e7bbe15ed
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ EXPORT_SYMBOL(msrs_free);
* argument @m. * argument @m.
* *
*/ */
int msr_read(u32 msr, struct msr *m) static int msr_read(u32 msr, struct msr *m)
{ {
int err; int err;
u64 val; u64 val;
@ -54,7 +54,7 @@ int msr_read(u32 msr, struct msr *m)
* @msr: MSR to write * @msr: MSR to write
* @m: value 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); return wrmsrl_safe(msr, m->q);
} }