License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[sfrench/cifs-2.6.git] / arch / x86 / include / asm / vsyscall.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_VSYSCALL_H
3 #define _ASM_X86_VSYSCALL_H
4
5 #include <linux/seqlock.h>
6 #include <uapi/asm/vsyscall.h>
7
8 #ifdef CONFIG_X86_VSYSCALL_EMULATION
9 extern void map_vsyscall(void);
10
11 /*
12  * Called on instruction fetch fault in vsyscall page.
13  * Returns true if handled.
14  */
15 extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
16 #else
17 static inline void map_vsyscall(void) {}
18 static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
19 {
20         return false;
21 }
22 #endif
23
24 #endif /* _ASM_X86_VSYSCALL_H */