2022-09-09 09:22:46

by Yihao Han

[permalink] [raw]
Subject: [PATCH] mm: hugetlb: Remove duplicate include

Fix following checkinclude.pl warning:
./drivers/base/node.c: linux/hugetlb.h is included more than once.

Signed-off-by: Yihao Han <[email protected]>
---
drivers/base/node.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/base/node.c b/drivers/base/node.c
index 80b1e91b9608..cf115d5a9b8a 100644
--- a/drivers/base/node.c
+++ b/drivers/base/node.c
@@ -20,7 +20,6 @@
#include <linux/pm_runtime.h>
#include <linux/swap.h>
#include <linux/slab.h>
-#include <linux/hugetlb.h>

static struct bus_type node_subsys = {
.name = "node",
--
2.17.1


2022-09-24 12:24:14

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] mm: hugetlb: Remove duplicate include

On Fri, Sep 09, 2022 at 02:15:03AM -0700, Yihao Han wrote:
> Fix following checkinclude.pl warning:
> ./drivers/base/node.c: linux/hugetlb.h is included more than once.
>
> Signed-off-by: Yihao Han <[email protected]>
> ---
> drivers/base/node.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/base/node.c b/drivers/base/node.c
> index 80b1e91b9608..cf115d5a9b8a 100644
> --- a/drivers/base/node.c
> +++ b/drivers/base/node.c
> @@ -20,7 +20,6 @@
> #include <linux/pm_runtime.h>
> #include <linux/swap.h>
> #include <linux/slab.h>
> -#include <linux/hugetlb.h>
>
> static struct bus_type node_subsys = {
> .name = "node",
> --
> 2.17.1
>

Yous subject line is not correct, please be more careful.