[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <86ee9a53-3136-7a2c-e59a-57d4d078188f@infradead.org>
Date: Sat, 2 Jun 2018 21:40:19 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>
Cc: LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] net: skbuff.h: drop unneeded <linux/slab.h>
From: Randy Dunlap <rdunlap@...radead.org>
<linux/skbuff.h> does not use nor need <linux/slab.h>, so drop this
header file from skbuff.h.
<linux/skbuff.h> is currently #included in around 1200 C source and
header files, making it the 31st most-used header file.
Build tested [allmodconfig] on 20 arch-es.
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
---
include/linux/skbuff.h | 2 --
1 file changed, 2 deletions(-)
--- lnx.orig/include/linux/skbuff.h
+++ lnx.next/include/linux/skbuff.h
@@ -852,8 +852,6 @@ struct sk_buff {
/*
* Handling routines are only of interest to the kernel
*/
-#include <linux/slab.h>
-
#define SKB_ALLOC_FCLONE 0x01
#define SKB_ALLOC_RX 0x02
Powered by blists - more mailing lists