Re: [PATCH 3/3] [PATCH]-This patch series completes the implementation of do_mq_timedreceive2 new system calls that provide non-destructive peek functionality on POSIX message queues

From: kernel test robot

Date: Thu Mar 05 2026 - 03:15:07 EST


Hi Mathura_Kumar,

kernel test robot noticed the following build errors:

[auto build test ERROR on shuah-kselftest/next]
[also build test ERROR on shuah-kselftest/fixes linus/master v7.0-rc2 next-20260304]
[cannot apply to arnd-asm-generic/master tip/x86/asm]
[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/Mathura_Kumar/mqueue-introduce-new-do_mq_timedreceive2-mq_peek-syscall-for-non-destructive-receive-and-inspection/20260305-020107
base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
patch link: https://lore.kernel.org/r/20260304135126.77270-3-academic1mathura%40gmail.com
patch subject: [PATCH 3/3] [PATCH]-This patch series completes the implementation of do_mq_timedreceive2 new system calls that provide non-destructive peek functionality on POSIX message queues
config: riscv-randconfig-r072-20260305 (https://download.01.org/0day-ci/archive/20260305/202603051551.UzHTmDax-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 15.2.0
smatch: v0.5.0-9004-gb810ac53
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/202603051551.UzHTmDax-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/202603051551.UzHTmDax-lkp@xxxxxxxxx/

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

>> ./arch/riscv/include/generated/asm/syscall_table_32.h:475:11: error: array index in initializer exceeds array bounds
475 | __SYSCALL(474, sys_mq_timedreceive2)
| ^~~
arch/riscv/kernel/compat_syscall_table.c:18:35: note: in definition of macro '__SYSCALL'
18 | #define __SYSCALL(nr, call) [nr] = __riscv_##call,
| ^~
./arch/riscv/include/generated/asm/syscall_table_32.h:475:11: note: (near initialization for 'compat_sys_call_table')
475 | __SYSCALL(474, sys_mq_timedreceive2)
| ^~~
arch/riscv/kernel/compat_syscall_table.c:18:35: note: in definition of macro '__SYSCALL'
18 | #define __SYSCALL(nr, call) [nr] = __riscv_##call,
| ^~
>> arch/riscv/kernel/compat_syscall_table.c:18:41: warning: excess elements in array initializer
18 | #define __SYSCALL(nr, call) [nr] = __riscv_##call,
| ^~~~~~~~
./arch/riscv/include/generated/asm/syscall_table_32.h:475:1: note: in expansion of macro '__SYSCALL'
475 | __SYSCALL(474, sys_mq_timedreceive2)
| ^~~~~~~~~
arch/riscv/kernel/compat_syscall_table.c:18:41: note: (near initialization for 'compat_sys_call_table')
18 | #define __SYSCALL(nr, call) [nr] = __riscv_##call,
| ^~~~~~~~
./arch/riscv/include/generated/asm/syscall_table_32.h:475:1: note: in expansion of macro '__SYSCALL'
475 | __SYSCALL(474, sys_mq_timedreceive2)
| ^~~~~~~~~
--
In file included from arch/riscv/include/uapi/asm/unistd.h:22,
from arch/riscv/include/asm/unistd.h:27,
from arch/riscv/kernel/compat_vdso/../vdso/flush_icache.S:7,
from arch/riscv/kernel/compat_vdso/flush_icache.S:3:
>> ./arch/riscv/include/generated/uapi/asm/unistd_32.h:322:9: warning: '__NR_mq_timedreceive_time64' redefined
322 | #define __NR_mq_timedreceive_time64 474
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./arch/riscv/include/generated/uapi/asm/unistd_32.h:269:9: note: this is the location of the previous definition
269 | #define __NR_mq_timedreceive_time64 419
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/riscv/include/uapi/asm/unistd.h:22,
from arch/riscv/include/asm/unistd.h:27,
from arch/riscv/kernel/compat_vdso/../vdso/getcpu.S:7,
from arch/riscv/kernel/compat_vdso/getcpu.S:3:
>> ./arch/riscv/include/generated/uapi/asm/unistd_32.h:322:9: warning: '__NR_mq_timedreceive_time64' redefined
322 | #define __NR_mq_timedreceive_time64 474
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./arch/riscv/include/generated/uapi/asm/unistd_32.h:269:9: note: this is the location of the previous definition
269 | #define __NR_mq_timedreceive_time64 419
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/riscv/include/uapi/asm/unistd.h:22,
from arch/riscv/include/asm/unistd.h:27,
from arch/riscv/kernel/compat_vdso/../vdso/rt_sigreturn.S:7,
from arch/riscv/kernel/compat_vdso/rt_sigreturn.S:3:
>> ./arch/riscv/include/generated/uapi/asm/unistd_32.h:322:9: warning: '__NR_mq_timedreceive_time64' redefined
322 | #define __NR_mq_timedreceive_time64 474
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./arch/riscv/include/generated/uapi/asm/unistd_32.h:269:9: note: this is the location of the previous definition
269 | #define __NR_mq_timedreceive_time64 419
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~

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