2017-12-06 17:22:52

by Pravin Shedge

[permalink] [raw]
Subject: [PATCH 26/45] mm: remove duplicate includes

These duplicate includes have been found with scripts/checkincludes.pl but
they have been removed manually to avoid removing false positives.

Signed-off-by: Pravin Shedge <[email protected]>
---
mm/userfaultfd.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/mm/userfaultfd.c b/mm/userfaultfd.c
index 8119270..39791b8 100644
--- a/mm/userfaultfd.c
+++ b/mm/userfaultfd.c
@@ -16,7 +16,6 @@
#include <linux/userfaultfd_k.h>
#include <linux/mmu_notifier.h>
#include <linux/hugetlb.h>
-#include <linux/pagemap.h>
#include <linux/shmem_fs.h>
#include <asm/tlbflush.h>
#include "internal.h"
--
2.7.4


2017-12-06 17:43:21

by Michal Hocko

[permalink] [raw]
Subject: Re: [PATCH 26/45] mm: remove duplicate includes

On Wed 06-12-17 22:52:37, Pravin Shedge wrote:
> These duplicate includes have been found with scripts/checkincludes.pl but
> they have been removed manually to avoid removing false positives.

I only see this one but I can see this is a series of 45 patches. Is
this really the best way to apply a change like this? Why not do it in a
single patch?

Other than that the patch looks correct.

> Signed-off-by: Pravin Shedge <[email protected]>
> ---
> mm/userfaultfd.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/userfaultfd.c b/mm/userfaultfd.c
> index 8119270..39791b8 100644
> --- a/mm/userfaultfd.c
> +++ b/mm/userfaultfd.c
> @@ -16,7 +16,6 @@
> #include <linux/userfaultfd_k.h>
> #include <linux/mmu_notifier.h>
> #include <linux/hugetlb.h>
> -#include <linux/pagemap.h>
> #include <linux/shmem_fs.h>
> #include <asm/tlbflush.h>
> #include "internal.h"
> --
> 2.7.4
>

--
Michal Hocko
SUSE Labs