Skip to content

Commit 944a8da

Browse files
Tom Rixsean-jc
authored andcommitted
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 <trix@redhat.com> Link: https://lore.kernel.org/r/20230404010141.1913667-1-trix@redhat.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 99b3086 commit 944a8da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ bool __read_mostly eager_page_split = true;
194194
module_param(eager_page_split, bool, 0644);
195195

196196
/* Enable/disable SMT_RSB bug mitigation */
197-
bool __read_mostly mitigate_smt_rsb;
197+
static bool __read_mostly mitigate_smt_rsb;
198198
module_param(mitigate_smt_rsb, bool, 0444);
199199

200200
/*

0 commit comments

Comments
 (0)