* [kkdwivedi:mlp 59/59] fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
@ 2026-10-07 21:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-07 21:05 UTC (permalink / raw)
To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all
tree: https://github.com/kkdwivedi/linux mlp
head: cb749145988a07c430f0cc8004d3d40b4227fe1f
commit: cb749145988a07c430f0cc8004d3d40b4227fe1f [59/59] net, epoll: Make the receive and delivery look-aheads switchable
config: i386-randconfig-2100-20261007 (https://download.01.org/0day-ci/archive/20261007/202610072353.dEs8asDo-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261007/202610072353.dEs8asDo-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610072353.dEs8asDo-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
2218 | if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
| ^~~~~~~~~~~~
>> fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
2218 | if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
| ^~~~~~~~~~~~
>> fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
2218 | if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
| ^~~~~~~~~~~~
>> fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
2218 | if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
| ^~~~~~~~~~~~
>> fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
2218 | if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
| ^~~~~~~~~~~~
>> fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
2218 | if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
| ^~~~~~~~~~~~
>> fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead'
2218 | if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
| ^~~~~~~~~~~~
7 errors generated.
vim +/ep_lookahead +2218 fs/eventpoll.c
2191
2192 static int ep_send_events(struct eventpoll *ep,
2193 struct epoll_event __user *events, int maxevents)
2194 {
2195 struct ep_send_lookahead la = {};
2196 struct epitem *epi, *tmp;
2197 LIST_HEAD(scan_batch);
2198 poll_table pt;
2199 int res = 0;
2200
2201 /*
2202 * Always short-circuit for fatal signals to allow threads to make a
2203 * timely exit without the chance of finding more events available and
2204 * fetching repeatedly.
2205 */
2206 if (fatal_signal_pending(current))
2207 return -EINTR;
2208
2209 init_poll_funcptr(&pt, NULL);
2210
2211 mutex_lock(&ep->mtx);
2212 ep_start_scan(ep, &scan_batch);
2213
2214 /*
2215 * We can loop without lock because we are passed a task-private
2216 * scan_batch; items cannot vanish while we hold ep->mtx.
2217 */
> 2218 if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
2219 la.item = list_first_entry(&scan_batch, struct epitem, rdllink);
2220 ep_send_lookahead_step(&la, &scan_batch);
2221 ep_send_lookahead_step(&la, &scan_batch);
2222 ep_send_lookahead_step(&la, &scan_batch);
2223 }
2224
2225 list_for_each_entry_safe(epi, tmp, &scan_batch, rdllink) {
2226 int delivered;
2227
2228 if (res >= maxevents)
2229 break;
2230
2231 if (la.item || la.file || la.sock)
2232 ep_send_lookahead_step(&la, &scan_batch);
2233 delivered = ep_deliver_event(ep, epi, &pt, &events, &scan_batch);
2234 if (delivered < 0) {
2235 if (!res)
2236 res = delivered;
2237 break;
2238 }
2239 res += delivered;
2240 }
2241
2242 ep_done_scan(ep, &scan_batch);
2243 mutex_unlock(&ep->mtx);
2244
2245 return res;
2246 }
2247
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-07 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 21:05 [kkdwivedi:mlp 59/59] fs/eventpoll.c:2218:16: error: use of undeclared identifier 'ep_lookahead' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.