Skip to contentSkip to conversation

crash: Remove header files which are included more than once

PATCH Applied Wenchao Hao 2 participants 2 messages Jun 6, 2024 – Jun 7, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crash: Remove header files which are included more than once

Following warning is reported, so remove these duplicated header including:

./kernel/crash_reserve.c: linux/kexec.h is included more than once.

This is just a clean code, no logic changed.

---
 kernel/crash_reserve.c | 1 -
 1 file changed, 1 deletion(-)
kernel/crash_reserve.c +0 -1
index 5b2722a93a48..d3b4cd12bdd1 100644
@@ -13,7 +13,6 @@
 #include <linux/memory.h>
 #include <linux/cpuhotplug.h>
 #include <linux/memblock.h>
-#include <linux/kexec.h>
 #include <linux/kmemleak.h>
 
 #include <asm/page.h>
Signature · 1 line
2.38.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Wenchao Hao

Following warning is reported, so remove these duplicated header including:

./kernel/crash_reserve.c: linux/kexec.h is included more than once.

This is just a clean code, no logic changed.

---
 kernel/crash_reserve.c | 1 -
 1 file changed, 1 deletion(-)

I remember someone posted patch to clean this up. Anyway,

Quoted 16 lines
kernel/crash_reserve.c +0 -1
index 5b2722a93a48..d3b4cd12bdd1 100644
@@ -13,7 +13,6 @@
 #include <linux/memory.h>
 #include <linux/cpuhotplug.h>
 #include <linux/memblock.h>
-#include <linux/kexec.h>
 #include <linux/kmemleak.h>
 
 #include <asm/page.h>
Signature · 1 line
2.38.1