kernel: kexec_file: remove some duplicated include file
Subsystems (3)
PATCH 1/1 kernel: kexec_file: remove some duplicated include file
kexec.h and slab.h have duplicated include. hence just remove redundant file.
--- kernel/kexec_file.c | 2 -- 1 file changed, 2 deletions(-)
kernel/kexec_file.c +0 -2
@@ -25,8 +25,6 @@#include <linux/elf.h> #include <linux/elfcore.h> #include <linux/kernel.h> -#include <linux/kexec.h> -#include <linux/slab.h> #include <linux/syscalls.h> #include <linux/vmalloc.h> #include "kexec_internal.h"
Signature · 1 line
1.7.12.4
Quoted 2 lines · zhong jiang
kexec.handslab.hhave duplicated include. hence just remove redundant file.
They have duplicated include, why do you remove both of them?
Quoted 27 lines
Signed-off-by zhong jiang <[email protected]>--- kernel/kexec_file.c | 2 -- 1 file changed, 2 deletions(-)kernel/kexec_file.c +0
-2@@ -25,8 +25,6 @@#include <linux/elf.h> #include <linux/elfcore.h> #include <linux/kernel.h> -#include <linux/kexec.h> -#include <linux/slab.h> #include <linux/syscalls.h> #include <linux/vmalloc.h> #include "kexec_internal.h" Signature · 7 lines
1.7.12.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 4 lines · Baoquan He
Quoted 2 lines · zhong jiang
kexec.handslab.hhave duplicated include. hence just remove redundant file.They have duplicated include, why do you remove both of them?
because we include the kexec.h and slab.h twice in kexec_file.c. It's unnecessary.
Thanks,
zhong jiang
Quoted 28 lines
Quoted 26 lines
Signed-off-by zhong jiang <[email protected]>--- kernel/kexec_file.c | 2 -- 1 file changed, 2 deletions(-)kernel/kexec_file.c +0
-2@@ -25,8 +25,6 @@#include <linux/elf.h> #include <linux/elfcore.h> #include <linux/kernel.h> -#include <linux/kexec.h> -#include <linux/slab.h> #include <linux/syscalls.h> #include <linux/vmalloc.h> #include "kexec_internal.h" Signature · 7 lines
1.7.12.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec.
Quoted 6 lines · zhong jiang
Quoted 4 lines · Baoquan He
Quoted 2 lines · zhong jiang
kexec.handslab.hhave duplicated include. hence just remove redundant file.They have duplicated include, why do you remove both of them?
because we include the
kexec.handslab.htwice inkexec_file.c. It's unnecessary.
OK, Could you rewrite the log with this? The old log makes me think kexec.h and slab.h themselves have duplicated include.
Quoted 33 lines
Thanks,
zhong jiangQuoted 28 lines
Quoted 26 lines
Signed-off-by zhong jiang <[email protected]>--- kernel/kexec_file.c | 2 -- 1 file changed, 2 deletions(-)kernel/kexec_file.c +0
-2@@ -25,8 +25,6 @@#include <linux/elf.h> #include <linux/elfcore.h> #include <linux/kernel.h> -#include <linux/kexec.h> -#include <linux/slab.h> #include <linux/syscalls.h> #include <linux/vmalloc.h> #include "kexec_internal.h" Signature · 7 lines
1.7.12.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec.
Quoted 9 lines · Baoquan He
Quoted 6 lines · zhong jiang
Quoted 4 lines · Baoquan He
Quoted 2 lines · zhong jiang
kexec.handslab.hhave duplicated include. hence just remove redundant file.They have duplicated include, why do you remove both of them?
because we include the
kexec.handslab.htwice inkexec_file.c. It's unnecessary.OK, Could you rewrite the log with this? The old log makes me think
kexec.handslab.hthemselves have duplicated include.
Ok, I will rewrite the log and repost in v2. Thanks
Sincerely,
zhong jiang
Quoted 33 lines
Quoted 31 lines
Thanks,
zhong jiangQuoted 28 lines
Quoted 26 lines
Signed-off-by zhong jiang <[email protected]>--- kernel/kexec_file.c | 2 -- 1 file changed, 2 deletions(-)kernel/kexec_file.c +0
-2@@ -25,8 +25,6 @@#include <linux/elf.h> #include <linux/elfcore.h> #include <linux/kernel.h> -#include <linux/kexec.h> -#include <linux/slab.h> #include <linux/syscalls.h> #include <linux/vmalloc.h> #include "kexec_internal.h" Signature · 7 lines
1.7.12.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec.
.