2020-09-09 09:41:18

by Yi Li

[permalink] [raw]
Subject: [PATCH] Remove duplicate include file

Remove duplicate include file

Signed-off-by: Yi Li <[email protected]>
---
arch/arm/mm/mmu.c | 1 -
mm/slab.h | 1 -
2 files changed, 2 deletions(-)

diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index c36f977b2ccb..7bbcdb29413e 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -34,7 +34,6 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach/pci.h>
-#include <asm/fixmap.h>

#include "fault.h"
#include "mm.h"
diff --git a/mm/slab.h b/mm/slab.h
index 6cc323f1313a..95e5cc1bb2a3 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -46,7 +46,6 @@ struct kmem_cache {
#include <linux/kmemleak.h>
#include <linux/random.h>
#include <linux/sched/mm.h>
-#include <linux/kmemleak.h>

/*
* State of the slab allocator.
--
2.25.3




2020-09-09 09:52:34

by Mike Rapoport

[permalink] [raw]
Subject: Re: [PATCH] Remove duplicate include file

On Wed, Sep 09, 2020 at 05:36:32PM +0800, Yi Li wrote:
> Remove duplicate include file
>
> Signed-off-by: Yi Li <[email protected]>

Reviewed-by: Mike Rapoport <[email protected]>

> ---
> arch/arm/mm/mmu.c | 1 -
> mm/slab.h | 1 -
> 2 files changed, 2 deletions(-)
>
> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
> index c36f977b2ccb..7bbcdb29413e 100644
> --- a/arch/arm/mm/mmu.c
> +++ b/arch/arm/mm/mmu.c
> @@ -34,7 +34,6 @@
> #include <asm/mach/arch.h>
> #include <asm/mach/map.h>
> #include <asm/mach/pci.h>
> -#include <asm/fixmap.h>
>
> #include "fault.h"
> #include "mm.h"
> diff --git a/mm/slab.h b/mm/slab.h
> index 6cc323f1313a..95e5cc1bb2a3 100644
> --- a/mm/slab.h
> +++ b/mm/slab.h
> @@ -46,7 +46,6 @@ struct kmem_cache {
> #include <linux/kmemleak.h>
> #include <linux/random.h>
> #include <linux/sched/mm.h>
> -#include <linux/kmemleak.h>
>
> /*
> * State of the slab allocator.
> --
> 2.25.3
>
>
>
>

--
Sincerely yours,
Mike.