x86/cpu: Provide a declaration for itlb_multihit_kvm_mitigation
authorThomas Gleixner <tglx@linutronix.de>
Mon, 4 Mar 2024 10:12:28 +0000 (11:12 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 4 Mar 2024 11:09:13 +0000 (12:09 +0100)
commit65efc4dc12c5cc296374278673b89390eba79fe6
tree69dcdf1c8bf6eec89c43fa639186ae6e786094b8
parentca3ec9e5540428afa3d372fb39f0d88c4f44af8b
x86/cpu: Provide a declaration for itlb_multihit_kvm_mitigation

Sparse complains rightfully about the missing declaration which has been
placed sloppily into the usage site:

  bugs.c:2223:6: sparse: warning: symbol 'itlb_multihit_kvm_mitigation' was not declared. Should it be static?

Add it to <asm/spec-ctrl.h> where it belongs and remove the one in the KVM code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240304005104.787173239@linutronix.de
arch/x86/include/asm/spec-ctrl.h
arch/x86/kvm/mmu/mmu.c