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

Subsystems: networking [general], the rest

STALE1785d

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

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

From: Mianhan Liu <hidden>
Date: 2021-09-20 12:30:20

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

Signed-off-by: Mianhan Liu <redacted>

---
 net/ipv4/udp_tunnel_core.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/net/ipv4/udp_tunnel_core.c b/net/ipv4/udp_tunnel_core.c
index b97e3635a..8efaf8c3f 100644
--- a/net/ipv4/udp_tunnel_core.c
+++ b/net/ipv4/udp_tunnel_core.c
@@ -2,11 +2,8 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/socket.h>
-#include <linux/udp.h>
-#include <linux/types.h>
 #include <linux/kernel.h>
 #include <net/dst_metadata.h>
-#include <net/net_namespace.h>
 #include <net/udp.h>
 #include <net/udp_tunnel.h>
 
-- 
2.25.1

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

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

Hello:

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

On Mon, 20 Sep 2021 20:29:57 +0800 you wrote:
udp_tunnel_core.c hasn't use any macro or function declared in udp.h, types.h,
and net_namespace.h. Thus, these files can be removed from udp_tunnel_core.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/udp_tunnel_core.c: remove superfluous header files from udp_tunnel_core.c
    https://git.kernel.org/netdev/net-next/c/bea714581a31

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