hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/powerpc/include/asm/module.h
....@@ -1,32 +1,11 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef _ASM_POWERPC_MODULE_H
23 #define _ASM_POWERPC_MODULE_H
34 #ifdef __KERNEL__
45
5
-/*
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
10
- */
11
-
126 #include <linux/list.h>
137 #include <asm/bug.h>
148 #include <asm-generic/module.h>
15
-
16
-
17
-#ifdef CONFIG_MPROFILE_KERNEL
18
-#define MODULE_ARCH_VERMAGIC_FTRACE "mprofile-kernel "
19
-#else
20
-#define MODULE_ARCH_VERMAGIC_FTRACE ""
21
-#endif
22
-
23
-#ifdef CONFIG_RELOCATABLE
24
-#define MODULE_ARCH_VERMAGIC_RELOCATABLE "relocatable "
25
-#else
26
-#define MODULE_ARCH_VERMAGIC_RELOCATABLE ""
27
-#endif
28
-
29
-#define MODULE_ARCH_VERMAGIC MODULE_ARCH_VERMAGIC_FTRACE MODULE_ARCH_VERMAGIC_RELOCATABLE
309
3110 #ifndef __powerpc64__
3211 /*
....@@ -93,12 +72,9 @@
9372 # ifdef MODULE
9473 asm(".section .ftrace.tramp,\"ax\",@nobits; .align 3; .previous");
9574 # endif /* MODULE */
96
-#endif
9775
9876 int module_trampoline_target(struct module *mod, unsigned long trampoline,
9977 unsigned long *target);
100
-
101
-#ifdef CONFIG_DYNAMIC_FTRACE
10278 int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);
10379 #else
10480 static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs)