x86/setup: remove duplicated including
PATCH 1/1 x86/setup: remove duplicated including
rm the second #include <asm/efi.h> in setup.c rm the second #include <asm/spec-ctrl.h> in smpboot.c
--- arch/x86/kernel/setup.c | 1 - arch/x86/kernel/smpboot.c | 1 - 2 files changed, 2 deletions(-)
arch/x86/kernel/setup.c +0 -1
@@ -37,7 +37,6 @@#include <asm/bugs.h> #include <asm/cacheinfo.h> #include <asm/cpu.h> -#include <asm/efi.h> #include <asm/gart.h> #include <asm/hypervisor.h> #include <asm/io_apic.h>
arch/x86/kernel/smpboot.c +0 -1
@@ -87,7 +87,6 @@#include <asm/hw_irq.h> #include <asm/stackprotector.h> #include <asm/sev.h> -#include <asm/spec-ctrl.h> /* representing HT siblings of each logical CPU */ DEFINE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_sibling_map);
Signature · 1 line
2.40.0
How about rewording the above to?
"x86/setup: Remove duplicate header includes"
Quoted 3 lines · Wang Jinchao
rm the second #include <
asm/efi.h> insetup.crm the second #include <
asm/spec-ctrl.h> insmpboot.c
Actually, these two lines are evident from the diff itself. You can remove both of them. If you really want to have some text in the commit message you can probably just say:
efi.h and spec-ctrl.h are included twice. Remove the duplicate entries.
Quoted 7 lines
Signed-off-by Wang Jinchao <[email protected]>--- arch/x86/kernel/setup.c | 1 - arch/x86/kernel/smpboot.c | 1 - 2 files changed, 2 deletions(-)
With the above changes, please feel free to add:
Quoted 24 lines
arch/x86/kernel/setup.c +0
-1@@ -37,7 +37,6 @@#include <asm/bugs.h> #include <asm/cacheinfo.h> #include <asm/cpu.h> -#include <asm/efi.h> #include <asm/gart.h> #include <asm/hypervisor.h> #include <asm/io_apic.h> arch/x86/kernel/smpboot.c +0
-1@@ -87,7 +87,6 @@#include <asm/hw_irq.h> #include <asm/stackprotector.h> #include <asm/sev.h> -#include <asm/spec-ctrl.h> /* representing HT siblings of each logical CPU */ DEFINE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_sibling_map);
Quoted 23 lines · Sohil Mehta
How about rewording the above to?
"x86/setup: Remove duplicate header includes"
Quoted 3 lines · Wang Jinchao
rm the second #include <
asm/efi.h> insetup.crm the second #include <
asm/spec-ctrl.h> insmpboot.cActually, these two lines are evident from the diff itself. You can remove both of them. If you really want to have some text in the commit message you can probably just say:
efi.handspec-ctrl.hare included twice. Remove the duplicate entries.Quoted 7 lines
Signed-off-by Wang Jinchao <[email protected]>--- arch/x86/kernel/setup.c | 1 - arch/x86/kernel/smpboot.c | 1 - 2 files changed, 2 deletions(-)
Quoted 4 lines
With the above changes, please feel free to add:
Reviewed-by Sohil Mehta <[email protected]>
Thanks for the suggestion, which has been applied to the v2 patch.