Skip to contentSkip to conversation

guest x86 kvm: fix sparse warning: symbol 'klock_waiting' was not declared. Should it be static

PATCH New Raghavendra K T 2 participants 2 messages Aug 16, 2013 – Aug 19, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 guest x86 kvm: fix sparse warning: symbol 'klock_waiting' was not declared. Should it be static

It was not declared as static since it was thought to be used by pv-flushtlb earlier.

---
This should apply on top of tip/spinlocks and fixes the sparse warning introduced by pvspinlock patch series.

 arch/x86/kernel/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kvm.c +1 -1
index b8ef630..56e2fa4 100644
@@ -529,7 +529,7 @@ arch_initcall(activate_jump_labels);
 #ifdef CONFIG_PARAVIRT_SPINLOCKS
 
 /* Kick a cpu by its apicid. Used to wake up a halted vcpu */
-void kvm_kick_cpu(int cpu)
+static void kvm_kick_cpu(int cpu)
 {
 	int apicid;
 	unsigned long flags = 0;
Signature · 1 line
1.7.11.7
#1 lore raw

[tip:x86/spinlocks] x86/kvm/guest: Fix sparse warning: "symbol ' klock_waiting' was not declared as static"

x86/kvm/guest: Fix sparse warning: "symbol 'klock_waiting' was not declared as static"
Commit-ID:  36bd621337c91a1ecda588e5bbbae8dd9698bae7
Gitweb:     http://git.kernel.org/tip/36bd621337c91a1ecda588e5bbbae8dd9698bae7
Author:     Raghavendra K T <[email protected]>
AuthorDate: Fri, 16 Aug 2013 15:08:41 +0530
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 19 Aug 2013 11:49:50 +0200

x86/kvm/guest: Fix sparse warning: "symbol 'klock_waiting' was not declared as static"

It was not declared as static since it was thought to be used by pv-flushtlb earlier.

---
 arch/x86/kernel/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kvm.c +1 -1
index b8ef630..56e2fa4 100644
@@ -529,7 +529,7 @@ arch_initcall(activate_jump_labels);
 #ifdef CONFIG_PARAVIRT_SPINLOCKS
 
 /* Kick a cpu by its apicid. Used to wake up a halted vcpu */
-void kvm_kick_cpu(int cpu)
+static void kvm_kick_cpu(int cpu)
 {
 	int apicid;
 	unsigned long flags = 0;