hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/riscv/include/asm/vdso.h
....@@ -1,19 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2012 ARM Limited
34 * Copyright (C) 2014 Regents of the University of California
45 * Copyright (C) 2017 SiFive
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 version 2 as
8
- * published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
176 */
187
198 #ifndef _ASM_RISCV_VDSO_H
....@@ -21,8 +10,10 @@
2110
2211 #include <linux/types.h>
2312
13
+#ifndef CONFIG_GENERIC_TIME_VSYSCALL
2414 struct vdso_data {
2515 };
16
+#endif
2617
2718 /*
2819 * The VDSO symbols are mapped into Linux so we can just use regular symbol