Skip to contentSkip to conversation

kernel: kexec_file: remove some duplicated include file

PATCH Superseded zhong jiang 2 participants 5 messages Sep 20, 2018 – Sep 21, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index c6a3b68..35cf0ad 100644
@@ -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
#1 lore raw
Quoted 2 lines · zhong jiang

kexec.h and slab.h have duplicated include. hence just remove redundant file.

They have duplicated include, why do you remove both of them?

Quoted 27 lines
---
 kernel/kexec_file.c | 2 --
 1 file changed, 2 deletions(-)
kernel/kexec_file.c +0 -2
index c6a3b68..35cf0ad 100644
@@ -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
#2 lore raw
Quoted 4 lines · Baoquan He
Quoted 2 lines · zhong jiang

kexec.h and slab.h have 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
---
 kernel/kexec_file.c | 2 --
 1 file changed, 2 deletions(-)
kernel/kexec_file.c +0 -2
index c6a3b68..35cf0ad 100644
@@ -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

.

#3 lore raw
Quoted 6 lines · zhong jiang
Quoted 4 lines · Baoquan He
Quoted 2 lines · zhong jiang

kexec.h and slab.h have 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.

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 jiang

Quoted 28 lines
Quoted 26 lines
---
 kernel/kexec_file.c | 2 --
 1 file changed, 2 deletions(-)
kernel/kexec_file.c +0 -2
index c6a3b68..35cf0ad 100644
@@ -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

.

#4 lore raw
Quoted 9 lines · Baoquan He
Quoted 6 lines · zhong jiang
Quoted 4 lines · Baoquan He
Quoted 2 lines · zhong jiang

kexec.h and slab.h have 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.

OK, Could you rewrite the log with this? The old log makes me think kexec.h and slab.h themselves 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 jiang

Quoted 28 lines
Quoted 26 lines
---
 kernel/kexec_file.c | 2 --
 1 file changed, 2 deletions(-)
kernel/kexec_file.c +0 -2
index c6a3b68..35cf0ad 100644
@@ -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

.

.