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

2 messages, 1 author, 2021-06-15 · open the first message on its own page

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

From: kernel test robot <hidden>
Date: 2021-06-15 03:20:47

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 <redacted>


includecheck warnings: (new ones prefixed by >>)
quoted
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/kbuild-all@lists.01.org

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

From: kernel test robot <hidden>
Date: 2021-06-15 03:20:45

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

Generated by: scripts/checkincludes.pl

Reported-by: kernel test robot <redacted>
Signed-off-by: kernel test robot <redacted>
---
 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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help