[PATCH -next] net/ipv4/tcp_minisocks.c: remove superfluous header files from tcp_minisocks.c

Subsystems: networking [general], networking [tcp], the rest

STALE1808d

2 messages, 2 authors, 2021-09-20 · open the first message on its own page

[PATCH -next] net/ipv4/tcp_minisocks.c: remove superfluous header files from tcp_minisocks.c

From: Mianhan Liu <hidden>
Date: 2021-09-20 11:56:14

tcp_minisocks.c hasn't use any macro or function declared in mm.h, module.h,
slab.h, sysctl.h, workqueue.h, static_key.h and inet_common.h. Thus, these
files can be removed from tcp_minisocks.c safely without affecting the
compilation of the net module.

Signed-off-by: Mianhan Liu <redacted>

---
 net/ipv4/tcp_minisocks.c | 7 -------
 1 file changed, 7 deletions(-)
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 0a4f3f161..cf913a66d 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -19,14 +19,7 @@
  *		Jorge Cwik, <jorge@laser.satlink.net>
  */
 
-#include <linux/mm.h>
-#include <linux/module.h>
-#include <linux/slab.h>
-#include <linux/sysctl.h>
-#include <linux/workqueue.h>
-#include <linux/static_key.h>
 #include <net/tcp.h>
-#include <net/inet_common.h>
 #include <net/xfrm.h>
 #include <net/busy_poll.h>
 
-- 
2.25.1

Re: [PATCH -next] net/ipv4/tcp_minisocks.c: remove superfluous header files from tcp_minisocks.c

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-20 12:20:14

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Mon, 20 Sep 2021 19:55:36 +0800 you wrote:
tcp_minisocks.c hasn't use any macro or function declared in mm.h, module.h,
slab.h, sysctl.h, workqueue.h, static_key.h and inet_common.h. Thus, these
files can be removed from tcp_minisocks.c safely without affecting the
compilation of the net module.

Signed-off-by: Mianhan Liu <redacted>

[...]
Here is the summary with links:
  - [-next] net/ipv4/tcp_minisocks.c: remove superfluous header files from tcp_minisocks.c
    https://git.kernel.org/netdev/net-next/c/85c698863c15

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help