crash: Remove header files which are included more than once
Subsystems (3)
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.
Signed-off-by Wenchao Hao <[email protected]>
--- kernel/crash_reserve.c | 1 - 1 file changed, 1 deletion(-)
kernel/crash_reserve.c +0 -1
@@ -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
Quoted 11 lines · Wenchao Hao
Following warning is reported, so remove these duplicated header including:
./kernel/crash_reserve.c:linux/kexec.his included more than once.This is just a clean code, no logic changed.
Signed-off-by Wenchao Hao <[email protected]>--- kernel/crash_reserve.c | 1 - 1 file changed, 1 deletion(-)
I remember someone posted patch to clean this up. Anyway,
Acked-by Baoquan He <[email protected]>
Quoted 16 lines
kernel/crash_reserve.c +0
-1@@ -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