diff mbox series

mm/slab.h: Fix duplicate include file kmemleak.h

Message ID 0101017478cb7f12-16ae9fdb-ef30-4277-ab57-e31e12598466-000000@us-west-2.amazonses.com (mailing list archive)
State New, archived
Headers show
Series mm/slab.h: Fix duplicate include file kmemleak.h | expand

Commit Message

Pintu Kumar Sept. 10, 2020, 4:13 p.m. UTC
As I was browsing through this code, I found that linux/kmemleak.h
was declared twice.

When I run ./scripts/checkincludes.pl it reported the same:
mm/slab.h: linux/kmemleak.h is included more than once.

Thus removing the last included header.

Signed-off-by: Pintu Kumar <pintu@codeaurora.org>
---
 mm/slab.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Matthew Wilcox Sept. 10, 2020, 4:15 p.m. UTC | #1
On Thu, Sep 10, 2020 at 04:13:56PM +0000, Pintu Kumar wrote:
> As I was browsing through this code, I found that linux/kmemleak.h
> was declared twice.
> 
> When I run ./scripts/checkincludes.pl it reported the same:
> mm/slab.h: linux/kmemleak.h is included more than once.

Already reported yesterday and also on August 18th.
diff mbox series

Patch

diff --git a/mm/slab.h b/mm/slab.h
index 6cc323f..95e5cc1 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.