[PATCH] mm: hugetlb: Remove duplicate include

Yihao Han posted 1 patch 3 years, 6 months ago
drivers/base/node.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] mm: hugetlb: Remove duplicate include
Posted by Yihao Han 3 years, 6 months ago
Fix following checkinclude.pl warning:
 ./drivers/base/node.c: linux/hugetlb.h is included more than once.

Signed-off-by: Yihao Han <hanyihao@vivo.com>
---
 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
Re: [PATCH] mm: hugetlb: Remove duplicate include
Posted by Greg Kroah-Hartman 3 years, 6 months ago
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 <hanyihao@vivo.com>
> ---
>  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.