Skip to contentSkip to conversation

ptp_kvm: Make kvm_ptp_lock static

PATCH Applied YueHaibing 3 participants 3 messages Apr 18, 2020 – Apr 20, 2020

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 ptp_kvm: Make kvm_ptp_lock static

Fix sparse warning:

drivers/ptp/ptp_kvm.c:25:1: warning:
symbol 'kvm_ptp_lock' was not declared. Should it be static?

---
 drivers/ptp/ptp_kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ptp/ptp_kvm.c +1 -1
index fc7d0b77e118..658d33fc3195 100644
@@ -22,7 +22,7 @@ struct kvm_ptp_clock {
 	struct ptp_clock_info caps;
 };
 
-DEFINE_SPINLOCK(kvm_ptp_lock);
+static DEFINE_SPINLOCK(kvm_ptp_lock);
 
 static struct pvclock_vsyscall_time_info *hv_clock;
 
Signature · 1 line
2.17.1