[nf-next] netfilter: remove unused headers.

Message ID 1540342456-20305-1-git-send-email-weongyo.linux@gmail.com
State Under Review
Delegated to: Pablo Neira
Headers show
Series
  • [nf-next] netfilter: remove unused headers.
Related show

Commit Message

Weongyo Jeong Oct. 24, 2018, 12:54 a.m.
Some headers aren't used at these files.  So it's safe to remove.

Signed-off-by: Weongyo Jeong <weongyo.linux@gmail.com>
---
 net/ipv4/netfilter/ipt_CLUSTERIP.c | 5 -----
 net/ipv4/netfilter/ipt_REJECT.c    | 3 ---
 2 files changed, 8 deletions(-)

Patch

diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c
index 2c8d313..f275460 100644
--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -17,9 +17,6 @@ 
 #include <linux/skbuff.h>
 #include <linux/slab.h>
 #include <linux/ip.h>
-#include <linux/tcp.h>
-#include <linux/udp.h>
-#include <linux/icmp.h>
 #include <linux/if_arp.h>
 #include <linux/seq_file.h>
 #include <linux/refcount.h>
@@ -30,8 +27,6 @@ 
 #include <net/netfilter/nf_conntrack.h>
 #include <net/net_namespace.h>
 #include <net/netns/generic.h>
-#include <net/checksum.h>
-#include <net/ip.h>
 
 #define CLUSTERIP_VERSION "0.8"
 
diff --git a/net/ipv4/netfilter/ipt_REJECT.c b/net/ipv4/netfilter/ipt_REJECT.c
index e8bed33..d12360a 100644
--- a/net/ipv4/netfilter/ipt_REJECT.c
+++ b/net/ipv4/netfilter/ipt_REJECT.c
@@ -14,9 +14,6 @@ 
 #include <linux/skbuff.h>
 #include <linux/slab.h>
 #include <linux/ip.h>
-#include <linux/udp.h>
-#include <linux/icmp.h>
-#include <net/icmp.h>
 #include <linux/netfilter/x_tables.h>
 #include <linux/netfilter_ipv4/ip_tables.h>
 #include <linux/netfilter_ipv4/ipt_REJECT.h>