2021-06-15 03:21:22

by Chen, Rong A

[permalink] [raw]
Subject: [tip:tmp.tmp2 324/364] net/core/sock.c: linux/poll.h is included more than once.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 35a241c0a90b26d9d234159ba6bab28fb5b5b490 [324/364] sched/headers, net: Uninline sock_poll_wait()
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


includecheck warnings: (new ones prefixed by >>)
>> net/core/sock.c: linux/poll.h is included more than once.

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]


2021-06-15 03:24:04

by Chen, Rong A

[permalink] [raw]
Subject: [RFC PATCH tip] sched/headers, net: fix duplicated inclusion

net/core/sock.c: linux/poll.h is included more than once.

Generated by: scripts/checkincludes.pl

Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---
sock.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/net/core/sock.c b/net/core/sock.c
index b3ed6b3e6c81f..7a2913bc212f2 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -106,7 +106,6 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
-#include <linux/poll.h>
#include <linux/tcp.h>
#include <linux/init.h>
#include <linux/poll.h>