[PATCH v2] mm: page_alloc: remove unneeded header files

Miaohe Lin posted 1 patch 10 months, 3 weeks ago
mm/page_alloc.c | 4 ----
1 file changed, 4 deletions(-)
[PATCH v2] mm: page_alloc: remove unneeded header files
Posted by Miaohe Lin 10 months, 3 weeks ago
Remove some unneeded header files. No functional change intended.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 mm/page_alloc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 19d97dde4558..e991c6b4d252 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -26,7 +26,6 @@
 #include <linux/kmsan.h>
 #include <linux/module.h>
 #include <linux/suspend.h>
-#include <linux/pagevec.h>
 #include <linux/ratelimit.h>
 #include <linux/oom.h>
 #include <linux/topology.h>
@@ -36,8 +35,6 @@
 #include <linux/memory_hotplug.h>
 #include <linux/nodemask.h>
 #include <linux/vmstat.h>
-#include <linux/sort.h>
-#include <linux/pfn.h>
 #include <linux/fault-inject.h>
 #include <linux/compaction.h>
 #include <trace/events/kmem.h>
@@ -52,7 +49,6 @@
 #include <linux/memcontrol.h>
 #include <linux/ftrace.h>
 #include <linux/lockdep.h>
-#include <linux/nmi.h>
 #include <linux/psi.h>
 #include <linux/khugepaged.h>
 #include <linux/delayacct.h>
-- 
2.27.0
Re: [PATCH v2] mm: page_alloc: remove unneeded header files
Posted by David Hildenbrand 10 months, 3 weeks ago
On 03.06.23 13:25, Miaohe Lin wrote:
> Remove some unneeded header files. No functional change intended.
> 
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
> ---
>   mm/page_alloc.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index 19d97dde4558..e991c6b4d252 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -26,7 +26,6 @@
>   #include <linux/kmsan.h>
>   #include <linux/module.h>
>   #include <linux/suspend.h>
> -#include <linux/pagevec.h>
>   #include <linux/ratelimit.h>
>   #include <linux/oom.h>
>   #include <linux/topology.h>
> @@ -36,8 +35,6 @@
>   #include <linux/memory_hotplug.h>
>   #include <linux/nodemask.h>
>   #include <linux/vmstat.h>
> -#include <linux/sort.h>
> -#include <linux/pfn.h>
>   #include <linux/fault-inject.h>
>   #include <linux/compaction.h>
>   #include <trace/events/kmem.h>
> @@ -52,7 +49,6 @@
>   #include <linux/memcontrol.h>
>   #include <linux/ftrace.h>
>   #include <linux/lockdep.h>
> -#include <linux/nmi.h>
>   #include <linux/psi.h>
>   #include <linux/khugepaged.h>
>   #include <linux/delayacct.h>

On mm-unstable, I assume

Reviewed-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb