]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ptp_kvm: Make kvm_ptp_lock static
authorYueHaibing <yuehaibing@huawei.com>
Sat, 18 Apr 2020 01:51:54 +0000 (09:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 18:02:56 +0000 (11:02 -0700)
Fix sparse warning:

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_kvm.c

index fc7d0b77e1182d1021df3328166fc2691571b27d..658d33fc31952f732bd7715441984215f6b3bea0 100644 (file)
@@ -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;