[liveupdate:next 11/21] kernel/liveupdate/luo_session.c:344:48: error: too few arguments provided to function-like macro invocation

Pratyush Yadav pratyush at kernel.org
Mon Jun 1 04:52:14 PDT 2026


On Mon, Jun 01 2026, kernel test robot wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux.git next
> head:   f4b4f5fe58a55a4212a263d9d44416778ca6e7a7
> commit: 74cab0be9a5d9d91471c4dee7311dcdfc1c0a6f4 [11/21] liveupdate: validate session type before performing operation
> config: x86_64-buildonly-randconfig-003-20260601 (https://download.01.org/0day-ci/archive/20260601/202606011344.RHiYuqso-lkp@intel.com/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260601/202606011344.RHiYuqso-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 at intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202606011344.RHiYuqso-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>>> kernel/liveupdate/luo_session.c:344:48: error: too few arguments provided to function-like macro invocation
>      344 |                  struct liveupdate_session_retrieve_fd, token),
>          |                                                              ^
>    kernel/liveupdate/luo_session.c:327:9: note: macro 'IOCTL_OP' defined here
>      327 | #define IOCTL_OP(_ioctl, _fn, _struct, _last, _type)                           \
>          |         ^
>>> kernel/liveupdate/luo_session.c:343:2: error: use of undeclared identifier 'IOCTL_OP'
>      343 |         IOCTL_OP(LIVEUPDATE_SESSION_RETRIEVE_FD, luo_session_retrieve_fd,
>          |         ^
>>> kernel/liveupdate/luo_session.c:378:6: error: invalid application of 'sizeof' to an incomplete type 'const struct luo_ioctl_op[]'
>      378 |             ARRAY_SIZE(luo_session_ioctl_ops)) {
>          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
>       11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
>          |                                ^~~~~
>    3 errors generated.

This happens because the patch got moved from the fixes branch to next,
and next has a new ioctl. Will send a fixup soon.

[...]

-- 
Regards,
Pratyush Yadav



More information about the kexec mailing list