Re: [PATCH v3] eventfd: introduce configurable maximum value for eventfd

From: kernel test robot
Date: Sun Mar 09 2025 - 10:32:25 EST


Hi Wen,

kernel test robot noticed the following build errors:

[auto build test ERROR on brauner-vfs/vfs.all]
[also build test ERROR on linus/master v6.14-rc5 next-20250307]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Wen-Yang/eventfd-introduce-configurable-maximum-value-for-eventfd/20250309-135152
base: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all
patch link: https://lore.kernel.org/r/20250309055003.32194-1-wen.yang%40linux.dev
patch subject: [PATCH v3] eventfd: introduce configurable maximum value for eventfd
config: i386-buildonly-randconfig-003-20250309 (https://download.01.org/0day-ci/archive/20250309/202503092223.G4FJDVsM-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250309/202503092223.G4FJDVsM-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503092223.G4FJDVsM-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

fs/eventfd.c: In function 'eventfd_is_writable':
>> fs/eventfd.c:251:76: error: 'ucnt' undeclared (first use in this function); did you mean 'uint'?
251 | return (ctx->maximum > ctx->count) && (ctx->maximum - ctx->count > ucnt);
| ^~~~
| uint
fs/eventfd.c:251:76: note: each undeclared identifier is reported only once for each function it appears in
>> fs/eventfd.c:252:1: warning: control reaches end of non-void function [-Wreturn-type]
252 | }
| ^


vim +251 fs/eventfd.c

248
249 static inline bool eventfd_is_writable(const struct eventfd_ctx *ctx)
250 {
> 251 return (ctx->maximum > ctx->count) && (ctx->maximum - ctx->count > ucnt);
> 252 }
253

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki