crash_core: remove duplicated including of kexec.h

Message ID 202312151654+0800-wangjinchao@xfusion.com
State New
Headers
Series crash_core: remove duplicated including of kexec.h |

Commit Message

Wang Jinchao Dec. 15, 2023, 8:54 a.m. UTC
  remove second include of linux/kexec.h

Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
---
 kernel/crash_core.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Baoquan He Dec. 15, 2023, 9:09 a.m. UTC | #1
On 12/15/23 at 04:54pm, Wang Jinchao wrote:
> remove second include of linux/kexec.h

Good catch.

Acked-by: Baoquan He <bhe@redhat.com>

> 
> Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
> ---
>  kernel/crash_core.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/kernel/crash_core.c b/kernel/crash_core.c
> index efe87d501c8c..d72985222b16 100644
> --- a/kernel/crash_core.c
> +++ b/kernel/crash_core.c
> @@ -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>
> -- 
> 2.40.0
> 
> 
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
>
  

Patch

diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index efe87d501c8c..d72985222b16 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
@@ -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>