lkml.org 
[lkml]   [2021]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] net/ipv4/tcp_metrics.c: remove superfluous header files from tcp_metrics.c
Date
tcp_metrics.c hasn't use any macro or function declared in rcupdate.h
spinlock.h, module.h, cache.h, hash.h and vmalloc.h. Thus, these files
can be removed from tcp_metrics.c safely without affecting the compilation
of the net module.

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

---
net/ipv4/tcp_metrics.c | 6 ------
1 file changed, 6 deletions(-)

diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c
index 0588b004d..7b819530d 100644
--- a/net/ipv4/tcp_metrics.c
+++ b/net/ipv4/tcp_metrics.c
@@ -1,15 +1,9 @@
// SPDX-License-Identifier: GPL-2.0
-#include <linux/rcupdate.h>
-#include <linux/spinlock.h>
#include <linux/jiffies.h>
-#include <linux/module.h>
-#include <linux/cache.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/tcp.h>
-#include <linux/hash.h>
#include <linux/tcp_metrics.h>
-#include <linux/vmalloc.h>

#include <net/inet_connection_sock.h>
#include <net/net_namespace.h>
--
2.25.1

\
 
 \ /
  Last update: 2021-09-25 16:28    [W:0.034 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site