Skip to content

Commit

Permalink
ptp_kvm: Make kvm_ptp_lock static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: YueHaibing <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
YueHaibing authored and davem330 committed Apr 20, 2020
1 parent 135e301 commit 0673f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ptp/ptp_kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0673f97

Please sign in to comment.