From: Mianhan Liu <liumh1@shanghaitech.edu.cn>
Date: Mon, 20 Sep 2021 14:15:49 +0000 (+0800)
Subject: net/ipv4/syncookies.c: remove superfluous header files from syncookies.c
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c595b120ebab1995083c28b6e050f3ccc24e3c1c;p=linux.git

net/ipv4/syncookies.c: remove superfluous header files from syncookies.c

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

Signed-off-by: Mianhan Liu <liumh1@shanghaitech.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
---

diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c
index 33792cf55a793..8696dc343ad2c 100644
--- a/net/ipv4/syncookies.c
+++ b/net/ipv4/syncookies.c
@@ -7,8 +7,6 @@
  */
 
 #include <linux/tcp.h>
-#include <linux/slab.h>
-#include <linux/random.h>
 #include <linux/siphash.h>
 #include <linux/kernel.h>
 #include <linux/export.h>