[PATCH] net/ipv4/xfrm4_tunnel.c: remove superfluous header files from xfrm4_tunnel.c

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

STALE1773d

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

[PATCH] net/ipv4/xfrm4_tunnel.c: remove superfluous header files from xfrm4_tunnel.c

From: Mianhan Liu <hidden>
Date: 2021-09-20 11:59:25

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

Signed-off-by: Mianhan Liu <redacted>
---
 net/ipv4/xfrm4_tunnel.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/net/ipv4/xfrm4_tunnel.c b/net/ipv4/xfrm4_tunnel.c
index f4555a88f..9d4f418f1 100644
--- a/net/ipv4/xfrm4_tunnel.c
+++ b/net/ipv4/xfrm4_tunnel.c
@@ -8,9 +8,7 @@
 
 #include <linux/skbuff.h>
 #include <linux/module.h>
-#include <linux/mutex.h>
 #include <net/xfrm.h>
-#include <net/ip.h>
 #include <net/protocol.h>
 
 static int ipip_output(struct xfrm_state *x, struct sk_buff *skb)
-- 
2.25.1

Re: [PATCH] net/ipv4/xfrm4_tunnel.c: remove superfluous header files from xfrm4_tunnel.c

From: Steffen Klassert <steffen.klassert@secunet.com>
Date: 2021-09-25 08:26:05

On Mon, Sep 20, 2021 at 07:58:31PM +0800, Mianhan Liu wrote:
xfrm4_tunnel.c hasn't use any macro or function declared in mutex.h and ip.h
Thus, these files can be removed from xfrm4_tunnel.c safely without affecting
the compilation of the net module.

Signed-off-by: Mianhan Liu <redacted>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help