diff mbox series

net: skbuff.h: drop unneeded <linux/slab.h>

Message ID 86ee9a53-3136-7a2c-e59a-57d4d078188f@infradead.org
State Accepted, archived
Delegated to: David Miller
Headers show
Series net: skbuff.h: drop unneeded <linux/slab.h> | expand

Commit Message

Randy Dunlap June 3, 2018, 4:40 a.m. UTC
From: Randy Dunlap <rdunlap@infradead.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@infradead.org>
---
 include/linux/skbuff.h |    2 --
 1 file changed, 2 deletions(-)

Comments

David Miller June 4, 2018, 9:02 p.m. UTC | #1
From: Randy Dunlap <rdunlap@infradead.org>
Date: Sat, 2 Jun 2018 21:40:19 -0700

> From: Randy Dunlap <rdunlap@infradead.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@infradead.org>

Applied, thanks Randy.
diff mbox series

Patch

--- 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