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