hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/ptp/ptp_kvm.c
....@@ -1,18 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Virtual PTP 1588 clock for use with KVM guests
34 *
45 * Copyright (C) 2017 Red Hat Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
166 */
177 #include <linux/device.h>
188 #include <linux/err.h>
....@@ -32,7 +22,7 @@
3222 struct ptp_clock_info caps;
3323 };
3424
35
-DEFINE_SPINLOCK(kvm_ptp_lock);
25
+static DEFINE_SPINLOCK(kvm_ptp_lock);
3626
3727 static struct pvclock_vsyscall_time_info *hv_clock;
3828