media: drop unnecessary networking includes
authorJakub Kicinski <kuba@kernel.org>
Fri, 3 Feb 2023 23:31:29 +0000 (00:31 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 19 Mar 2023 21:50:06 +0000 (22:50 +0100)
commitde163422206076d764e800486f9c28a0ede7410a
treed702a87b4eeecc8bc5778394af4fd693395f16c0
parente78da4da9edb2dc44b9302b6229284892cdb58b5
media: drop unnecessary networking includes

dvb_net.h includes a bunch of core networking headers which increases
the number of objects rebuilt when we touch them. They are unnecessary
for the header itself and only one driver has an indirect dependency.

tveeprom.h includes if_packet to gain access to ETH_ALEN. This
is a bit of an overkill because if_packet.h pulls in skbuff.h.
The definition of ETH_ALEN is in the uAPI header, which is
very rarely touched, so switch to including that.

This results in roughly 250 fewer objects built when skbuff.h
is touched (6028 -> 5788).

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/ttpci/budget-av.c
drivers/media/usb/dvb-usb/pctv452e.c
include/media/dvb_net.h
include/media/tveeprom.h