From: kernel test robot <lkp@intel.com>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [kkdwivedi:mlp 59/59] fs/eventpoll.c:2218:16: error: 'ep_lookahead' undeclared; did you mean 'ep_send_lookahead'?
Date: Wed, 07 Oct 2026 22:55:03 +0200 [thread overview]
Message-ID: <202610072234.3UFRGNgM-lkp@intel.com> (raw)
tree: https://github.com/kkdwivedi/linux mlp
head: cb749145988a07c430f0cc8004d3d40b4227fe1f
commit: cb749145988a07c430f0cc8004d3d40b4227fe1f [59/59] net, epoll: Make the receive and delivery look-aheads switchable
config: s390-randconfig-2000-20261007 (https://download.01.org/0day-ci/archive/20261007/202610072234.3UFRGNgM-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261007/202610072234.3UFRGNgM-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/202610072234.3UFRGNgM-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <command-line>:
fs/eventpoll.c: In function 'ep_send_events':
>> fs/eventpoll.c:2218:16: error: 'ep_lookahead' undeclared (first use in this function); did you mean 'ep_send_lookahead'?
if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
^~~~~~~~~~~~
include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
compiletime_assert_rwonce_type(x); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/eventpoll.c:2218:6: note: in expansion of macro 'READ_ONCE'
if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
^~~~~~~~~
fs/eventpoll.c:2218:16: note: each undeclared identifier is reported only once for each function it appears in
if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
^~~~~~~~~~~~
include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
compiletime_assert_rwonce_type(x); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/eventpoll.c:2218:6: note: in expansion of macro 'READ_ONCE'
if (READ_ONCE(ep_lookahead) && !list_empty(&scan_batch)) {
^~~~~~~~~
vim +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
reply other threads:[~2026-10-07 20:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610072234.3UFRGNgM-lkp@intel.com \
--to=lkp@intel.com \
--cc=memxor@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.