diff options
author | Tom Rix <[email protected]> | 2023-04-03 21:01:41 -0400 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-04-05 16:47:35 -0700 |
commit | 944a8dad8b4eb0b565cc36600ee1339c21278d76 (patch) | |
tree | 266bc346df0ed574b8f01eef5db4bf0d5fbbca7e | |
parent | 99b30869804ea59d9596cdbefa5cc3aabd588521 (diff) |
KVM: x86: set "mitigate_smt_rsb" storage-class-specifier to static
smatch reports
arch/x86/kvm/x86.c:199:20: warning: symbol
'mitigate_smt_rsb' was not declared. Should it be static?
This variable is only used in one file so it should be static.
Signed-off-by: Tom Rix <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 2e0933f510ee..1b74da8682a0 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -194,7 +194,7 @@ bool __read_mostly eager_page_split = true; module_param(eager_page_split, bool, 0644); /* Enable/disable SMT_RSB bug mitigation */ -bool __read_mostly mitigate_smt_rsb; +static bool __read_mostly mitigate_smt_rsb; module_param(mitigate_smt_rsb, bool, 0444); /* |