2021-09-20 14:33:19

by Mianhan Liu

[permalink] [raw]
Subject: [PATCH -next] net/ipv4/tcp_minisocks.c: remove superfluous header files from tcp_minisocks.c

tcp_minisocks.c hasn't use any macro or function declared in mm.h, module.h,
slab.h, sysctl.h, workqueue.h, static_key.h and inet_common.h. Thus, these
files can be removed from tcp_minisocks.c safely without affecting the
compilation of the net module.

Signed-off-by: Mianhan Liu <[email protected]>

---
net/ipv4/tcp_minisocks.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 0a4f3f161..cf913a66d 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -19,14 +19,7 @@
* Jorge Cwik, <[email protected]>
*/

-#include <linux/mm.h>
-#include <linux/module.h>
-#include <linux/slab.h>
-#include <linux/sysctl.h>
-#include <linux/workqueue.h>
-#include <linux/static_key.h>
#include <net/tcp.h>
-#include <net/inet_common.h>
#include <net/xfrm.h>
#include <net/busy_poll.h>

--
2.25.1



2021-09-20 21:29:47

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH -next] net/ipv4/tcp_minisocks.c: remove superfluous header files from tcp_minisocks.c

Hello:

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

On Mon, 20 Sep 2021 19:55:36 +0800 you wrote:
> tcp_minisocks.c hasn't use any macro or function declared in mm.h, module.h,
> slab.h, sysctl.h, workqueue.h, static_key.h and inet_common.h. Thus, these
> files can be removed from tcp_minisocks.c safely without affecting the
> compilation of the net module.
>
> Signed-off-by: Mianhan Liu <[email protected]>
>
> [...]

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

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