diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-04-18 03:51:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-20 20:02:56 +0200 |
commit | 0673f976285e0570437612329962c339300d013e (patch) | |
tree | a35081f4ca6076c60c12da94c571bec5a354e6a6 /drivers/ptp | |
parent | net: dsa: sja1105: enable internal pull-down for RX_DV/CRS_DV/RX_CTL and RX_ER (diff) | |
download | linux-0673f976285e0570437612329962c339300d013e.tar.xz linux-0673f976285e0570437612329962c339300d013e.zip |
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?
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>
Diffstat (limited to 'drivers/ptp')
-rw-r--r-- | drivers/ptp/ptp_kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_kvm.c b/drivers/ptp/ptp_kvm.c index fc7d0b77e118..658d33fc3195 100644 --- a/drivers/ptp/ptp_kvm.c +++ b/drivers/ptp/ptp_kvm.c @@ -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; |