]> git.baikalelectronics.ru Git - kernel.git/commit
codel: remove unnecessary sock.h include
authorJakub Kicinski <kuba@kernel.org>
Tue, 21 Dec 2021 19:39:40 +0000 (11:39 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Dec 2021 23:03:47 +0000 (15:03 -0800)
commit164fffefb18652fd468bd1f5f7a0a5248a2d0538
tree150c98c5e6f0544019b608d6fbb61d34041a4d06
parent27d2f10e98b4c33ee375c5d5bfbcfd8e5f6437ee
codel: remove unnecessary sock.h include

Since sock.h is modified relatively often (60 times in the last
12 months) it seems worthwhile to decrease the incremental build
work.

CoDel's header includes net/inet_ecn.h which in turn includes net/sock.h.
codel.h is itself included by mac80211 which is included by much of
the WiFi stack and drivers. Removing the net/inet_ecn.h include from
CoDel breaks the dependecy between WiFi and sock.h.

Commit 5f9cb88bcd1a ("codel: split into multiple files") moved all
the code which actually needs ECN helpers out to net/codel_impl.h,
the include can be moved there as well.

This decreases the incremental build size after touching sock.h
from 4999 objects to 4051 objects.

Fix unmasked missing includes in WiFi drivers.

Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211221193941.3805147-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wireless/ath/ath11k/debugfs.c
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/debug.c
include/net/codel.h
include/net/codel_impl.h