All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] net/ipv4/route.c: remove superfluous header files from route.c
@ 2021-09-20 11:31 Mianhan Liu
  2021-09-20 12:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Mianhan Liu @ 2021-09-20 11:31 UTC (permalink / raw)
  To: David S. Miller, Hideaki YOSHIFUJI, David Ahern
  Cc: Jakub Kicinski, netdev, linux-kernel, Mianhan Liu

route.c hasn't use any macro or function declared in uaccess.h, types.h,
string.h, sockios.h, times.h, protocol.h, arp.h and l3mdev.h. Thus, these
files can be removed from route.c safely without affecting the compilation
of the net module.

Signed-off-by: Mianhan Liu <liumh1@shanghaitech.edu.cn>

---
 net/ipv4/route.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index d6899ab5f..0b4103b1e 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -61,15 +61,11 @@
 #define pr_fmt(fmt) "IPv4: " fmt
 
 #include <linux/module.h>
-#include <linux/uaccess.h>
 #include <linux/bitops.h>
-#include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/memblock.h>
-#include <linux/string.h>
 #include <linux/socket.h>
-#include <linux/sockios.h>
 #include <linux/errno.h>
 #include <linux/in.h>
 #include <linux/inet.h>
@@ -84,20 +80,17 @@
 #include <linux/netfilter_ipv4.h>
 #include <linux/random.h>
 #include <linux/rcupdate.h>
-#include <linux/times.h>
 #include <linux/slab.h>
 #include <linux/jhash.h>
 #include <net/dst.h>
 #include <net/dst_metadata.h>
 #include <net/net_namespace.h>
-#include <net/protocol.h>
 #include <net/ip.h>
 #include <net/route.h>
 #include <net/inetpeer.h>
 #include <net/sock.h>
 #include <net/ip_fib.h>
 #include <net/nexthop.h>
-#include <net/arp.h>
 #include <net/tcp.h>
 #include <net/icmp.h>
 #include <net/xfrm.h>
@@ -109,7 +102,6 @@
 #endif
 #include <net/secure_seq.h>
 #include <net/ip_tunnels.h>
-#include <net/l3mdev.h>
 
 #include "fib_lookup.h"
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] net/ipv4/route.c: remove superfluous header files from route.c
  2021-09-20 11:31 [PATCH -next] net/ipv4/route.c: remove superfluous header files from route.c Mianhan Liu
@ 2021-09-20 12:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-09-20 12:20 UTC (permalink / raw)
  To: Mianhan Liu; +Cc: davem, yoshfuji, dsahern, kuba, netdev, linux-kernel

Hello:

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

On Mon, 20 Sep 2021 19:31:37 +0800 you wrote:
> route.c hasn't use any macro or function declared in uaccess.h, types.h,
> string.h, sockios.h, times.h, protocol.h, arp.h and l3mdev.h. Thus, these
> files can be removed from route.c safely without affecting the compilation
> of the net module.
> 
> Signed-off-by: Mianhan Liu <liumh1@shanghaitech.edu.cn>
> 
> [...]

Here is the summary with links:
  - [-next] net/ipv4/route.c: remove superfluous header files from route.c
    https://git.kernel.org/netdev/net-next/c/ffa66f15e450

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-20 12:20 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:31 [PATCH -next] net/ipv4/route.c: remove superfluous header files from route.c Mianhan Liu
2021-09-20 12:20 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.