diff options
author | Ingo Molnar <mingo@kernel.org> | 2022-01-09 11:29:32 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:43 +0100 |
commit | 50d1c00bbd7be72ea0ae0905681465f7b3381d65 (patch) | |
tree | 08e318a4e9201a5ffd9b527fe0c6779f8cd5a172 | |
parent | ee0a2513c03f3fc6856c46822176b0b9cefc50f8 (diff) | |
download | tip-50d1c00bbd7be72ea0ae0905681465f7b3381d65.tar.gz |
headers/deps: x86/modules: Optimize <asm/module.h> dependencies, remove <asm/orc_types.h> inclusion
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <asm/module.h> | LOC: 412 | headers: 39
after: | #include <asm/module.h> | LOC: 26 | headers: 17
Improves the footprint of <linux/module.h> a bit, which is included in 75% of .o files
on a distro kernel build.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/module.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/module.h b/arch/x86/include/asm/module.h index e988bac0a4a1c..4900697ee6f69 100644 --- a/arch/x86/include/asm/module.h +++ b/arch/x86/include/asm/module.h @@ -3,7 +3,8 @@ #define _ASM_X86_MODULE_H #include <asm-generic/module.h> -#include <asm/orc_types.h> + +struct orc_entry; struct mod_arch_specific { #ifdef CONFIG_UNWINDER_ORC |