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

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

STALE1778d

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

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

From: Mianhan Liu <hidden>
Date: 2021-09-20 11:39:55

tcp_fastopen.c hasn't use any macro or function declared in crypto.h, err.h,
init.h, list.h, rculist.h and inetpeer.h. Thus, these files can be removed
from tcp_fastopen.c safely without affecting the compilation of the net module.

Signed-off-by: Mianhan Liu <redacted>

---
 net/ipv4/tcp_fastopen.c | 6 ------
 1 file changed, 6 deletions(-)
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c
index 59412d635..fdbcf2a6d 100644
--- a/net/ipv4/tcp_fastopen.c
+++ b/net/ipv4/tcp_fastopen.c
@@ -1,13 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
-#include <linux/crypto.h>
-#include <linux/err.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
-#include <linux/list.h>
 #include <linux/tcp.h>
 #include <linux/rcupdate.h>
-#include <linux/rculist.h>
-#include <net/inetpeer.h>
 #include <net/tcp.h>
 
 void tcp_fastopen_init_key_once(struct net *net)
-- 
2.25.1

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

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

Hello:

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

On Mon, 20 Sep 2021 19:34:16 +0800 you wrote:
tcp_fastopen.c hasn't use any macro or function declared in crypto.h, err.h,
init.h, list.h, rculist.h and inetpeer.h. Thus, these files can be removed
from tcp_fastopen.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_fastopen.c: remove superfluous header files from tcp_fastopen.c
    https://git.kernel.org/netdev/net-next/c/222a31408ab0

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