LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] net/ipv4/xfrm4_tunnel.c: remove superfluous header files from xfrm4_tunnel.c
@ 2021-09-20 11:58 Mianhan Liu
2021-09-25 8:08 ` Steffen Klassert
0 siblings, 1 reply; 2+ messages in thread
From: Mianhan Liu @ 2021-09-20 11:58 UTC (permalink / raw)
To: Steffen Klassert, Herbert Xu, David S. Miller, Hideaki YOSHIFUJI,
David Ahern
Cc: Jakub Kicinski, netdev, linux-kernel, Mianhan Liu
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 <liumh1@shanghaitech.edu.cn>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/ipv4/xfrm4_tunnel.c: remove superfluous header files from xfrm4_tunnel.c
2021-09-20 11:58 [PATCH] net/ipv4/xfrm4_tunnel.c: remove superfluous header files from xfrm4_tunnel.c Mianhan Liu
@ 2021-09-25 8:08 ` Steffen Klassert
0 siblings, 0 replies; 2+ messages in thread
From: Steffen Klassert @ 2021-09-25 8:08 UTC (permalink / raw)
To: Mianhan Liu
Cc: Herbert Xu, David S. Miller, Hideaki YOSHIFUJI, David Ahern,
Jakub Kicinski, netdev, linux-kernel
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 <liumh1@shanghaitech.edu.cn>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-25 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 11:58 [PATCH] net/ipv4/xfrm4_tunnel.c: remove superfluous header files from xfrm4_tunnel.c Mianhan Liu
2021-09-25 8:08 ` Steffen Klassert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).