net: skbuff: drop the linux/net.h include
authorJakub Kicinski <kuba@kernel.org>
Thu, 26 Jan 2023 07:14:15 +0000 (23:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2023 11:19:46 +0000 (11:19 +0000)
commit9a859da287870715a22ce05d6ae377ae8ac79cc3
treed5ccfbd0b29d7f20e0e0afd0ae7e95695c5349f4
parentac62f60619fa5b53144fefdca6d2a219125a0228
net: skbuff: drop the linux/net.h include

It appears nothing needs it. The kernel builds fine with this
include removed, building an otherwise empty source file with:

 #include <linux/skbuff.h>
 #ifdef _LINUX_NET_H
 #error linux/net.h is back
 #endif

works too (meaning net.h is not just pulled in indirectly).

This gives us a slight 0.5% reduction in the pre-processed size
of skbuff.h.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h