]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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)
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 d068ca2ae2e6 ("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

index dba055d085be3069d77f73fcdb8ef0819962dc77..eb8b4f20c95e7f873074b6c7c87a38592281f3ea 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
  */
 
+#include <linux/vmalloc.h>
+
 #include "debugfs.h"
 
 #include "core.h"
index cf05baf8864025d86186cb37cb33fb875724b87f..a0737eea9f81dd147a8210b17cb0638e28b62647 100644 (file)
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
 /* Copyright(c) 2019-2020  Realtek Corporation
  */
+#include <linux/ip.h>
+#include <linux/udp.h>
 
 #include "coex.h"
 #include "core.h"
index 9756d75ef24e1e827637199dc4353b626ed5366c..22bd1d03e722e6d98f9ee9fbb50aef18c7bddfff 100644 (file)
@@ -2,6 +2,8 @@
 /* Copyright(c) 2019-2020  Realtek Corporation
  */
 
+#include <linux/vmalloc.h>
+
 #include "coex.h"
 #include "debug.h"
 #include "fw.h"
index a6c9e34e62b87ccfbbc90255fda0387fe3f1fca3..d74dd8fda54e077ae06d537bb750f3cfbc280a64 100644 (file)
@@ -45,7 +45,6 @@
 #include <linux/ktime.h>
 #include <linux/skbuff.h>
 #include <net/pkt_sched.h>
-#include <net/inet_ecn.h>
 
 /* Controlling Queue Delay (CoDel) algorithm
  * =========================================
index 137d40d8cbeb75cf3563bc50eb54b7d96be539c7..78a27ac730700b54300537e2b5148d0e049c8333 100644 (file)
@@ -49,6 +49,8 @@
  * Implemented on linux by Dave Taht and Eric Dumazet
  */
 
+#include <net/inet_ecn.h>
+
 static void codel_params_init(struct codel_params *params)
 {
        params->interval = MS2TIME(100);