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

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

STALE1829d

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

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

From: Mianhan Liu <hidden>
Date: 2021-09-20 14:16:39

syncookies.c hasn't use any macro or function declared in slab.h and random.h,
Thus, these files can be removed from syncookies.c safely without
affecting the compilation of the net module.

Signed-off-by: Mianhan Liu <redacted>

---
 net/ipv4/syncookies.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c
index 33792cf55..8696dc343 100644
--- a/net/ipv4/syncookies.c
+++ b/net/ipv4/syncookies.c
@@ -7,8 +7,6 @@
  */
 
 #include <linux/tcp.h>
-#include <linux/slab.h>
-#include <linux/random.h>
 #include <linux/siphash.h>
 #include <linux/kernel.h>
 #include <linux/export.h>
-- 
2.25.1

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

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-21 10:10:35

Hello:

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

On Mon, 20 Sep 2021 22:15:49 +0800 you wrote:
syncookies.c hasn't use any macro or function declared in slab.h and random.h,
Thus, these files can be removed from syncookies.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/syncookies.c: remove superfluous header files from syncookies.c
    https://git.kernel.org/netdev/net-next/c/c595b120ebab

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