hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/x86/include/asm/livepatch.h
....@@ -1,21 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * livepatch.h - x86-specific Kernel Live Patching Core
34 *
45 * Copyright (C) 2014 Seth Jennings <sjenning@redhat.com>
56 * Copyright (C) 2014 SUSE
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License
9
- * as published by the Free Software Foundation; either version 2
10
- * of the License, or (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
197 */
208
219 #ifndef _ASM_X86_LIVEPATCH_H
....@@ -23,14 +11,6 @@
2311
2412 #include <asm/setup.h>
2513 #include <linux/ftrace.h>
26
-
27
-static inline int klp_check_compiler_support(void)
28
-{
29
-#ifndef CC_USING_FENTRY
30
- return 1;
31
-#endif
32
- return 0;
33
-}
3414
3515 static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
3616 {