From: kernel test robot <lkp@intel.com>
To: Mathura_Kumar <academic1mathura@gmail.com>, brauner@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, academic1mathura@gmail.com,
linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
viro@zeniv.linux.org.uk
Subject: Re: [PATCH] mqueue: introduce new do_mq_timedreceive2() [ mq_peek syscall] for non-destructive receive and inspection,fix minor issue,prepared doc.
Date: Thu, 5 Mar 2026 15:39:16 +0100 [thread overview]
Message-ID: <202603051544.tZ2QdW5s-lkp@intel.com> (raw)
In-Reply-To: <20260305065212.83213-1-academic1mathura@gmail.com>
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 brauner-vfs/vfs.all next-20260304]
[cannot apply to linus/master tip/x86/asm v6.16-rc1]
[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-fix-minor-issue-prep/20260305-145412
base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
patch link: https://lore.kernel.org/r/20260305065212.83213-1-academic1mathura%40gmail.com
patch subject: [PATCH] mqueue: introduce new do_mq_timedreceive2() [ mq_peek syscall] for non-destructive receive and inspection,fix minor issue,prepared doc.
config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260305/202603051544.tZ2QdW5s-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/202603051544.tZ2QdW5s-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/202603051544.tZ2QdW5s-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <command-line>:
ipc/mqueue.c:1749:24: warning: 'struct compat_mq_timedreceive2_args' declared inside parameter list will not be visible outside of this definition or declaration
1749 | struct compat_mq_timedreceive2_args __user *, uargs,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:617:63: note: in definition of macro '__same_type'
617 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^
include/linux/syscalls.h:131:26: note: in expansion of macro '__TYPE_AS'
131 | #define __TYPE_IS_LL(t) (__TYPE_AS(t, 0LL) || __TYPE_AS(t, 0ULL))
| ^~~~~~~~~
include/linux/syscalls.h:132:56: note: in expansion of macro '__TYPE_IS_LL'
132 | #define __SC_LONG(t, a) __typeof(__builtin_choose_expr(__TYPE_IS_LL(t), 0LL, 0L)) a
| ^~~~~~~~~~~~
include/linux/syscalls.h:122:27: note: in expansion of macro '__SC_LONG'
122 | #define __MAP4(m,t,a,...) m(t,a), __MAP3(m,__VA_ARGS__)
| ^
include/linux/syscalls.h:123:35: note: in expansion of macro '__MAP4'
123 | #define __MAP5(m,t,a,...) m(t,a), __MAP4(m,__VA_ARGS__)
| ^~~~~~
include/linux/syscalls.h:125:22: note: in expansion of macro '__MAP5'
125 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
| ^~~~~
arch/x86/include/asm/syscall_wrapper.h:224:36: note: in expansion of macro '__MAP'
224 | static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
| ^~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
In file included from ipc/mqueue.c:29:
ipc/mqueue.c:1749:24: warning: 'struct compat_mq_timedreceive2_args' declared inside parameter list will not be visible outside of this definition or declaration
1749 | struct compat_mq_timedreceive2_args __user *, uargs,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/syscalls.h:127:25: note: in definition of macro '__SC_DECL'
127 | #define __SC_DECL(t, a) t a
| ^
include/linux/syscalls.h:123:35: note: in expansion of macro '__MAP4'
123 | #define __MAP5(m,t,a,...) m(t,a), __MAP4(m,__VA_ARGS__)
| ^~~~~~
include/linux/syscalls.h:125:22: note: in expansion of macro '__MAP5'
125 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
| ^~~~~
arch/x86/include/asm/syscall_wrapper.h:225:43: note: in expansion of macro '__MAP'
225 | static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
| ^~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1749:24: warning: 'struct compat_mq_timedreceive2_args' declared inside parameter list will not be visible outside of this definition or declaration
1749 | struct compat_mq_timedreceive2_args __user *, uargs,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:617:63: note: in definition of macro '__same_type'
617 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^
include/linux/syscalls.h:131:26: note: in expansion of macro '__TYPE_AS'
131 | #define __TYPE_IS_LL(t) (__TYPE_AS(t, 0LL) || __TYPE_AS(t, 0ULL))
| ^~~~~~~~~
include/linux/syscalls.h:132:56: note: in expansion of macro '__TYPE_IS_LL'
132 | #define __SC_LONG(t, a) __typeof(__builtin_choose_expr(__TYPE_IS_LL(t), 0LL, 0L)) a
| ^~~~~~~~~~~~
include/linux/syscalls.h:122:27: note: in expansion of macro '__SC_LONG'
122 | #define __MAP4(m,t,a,...) m(t,a), __MAP3(m,__VA_ARGS__)
| ^
include/linux/syscalls.h:123:35: note: in expansion of macro '__MAP4'
123 | #define __MAP5(m,t,a,...) m(t,a), __MAP4(m,__VA_ARGS__)
| ^~~~~~
include/linux/syscalls.h:125:22: note: in expansion of macro '__MAP5'
125 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
| ^~~~~
arch/x86/include/asm/syscall_wrapper.h:228:36: note: in expansion of macro '__MAP'
228 | static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
| ^~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
ipc/mqueue.c: In function '__se_sys_mq_timedreceive2_time32':
>> include/linux/syscalls.h:133:25: error: passing argument 2 of '__do_sys_mq_timedreceive2_time32' from incompatible pointer type [-Wincompatible-pointer-types]
133 | #define __SC_CAST(t, a) (__force t) a
include/linux/syscalls.h:122:27: note: in expansion of macro '__SC_CAST'
122 | #define __MAP4(m,t,a,...) m(t,a), __MAP3(m,__VA_ARGS__)
| ^
include/linux/syscalls.h:123:35: note: in expansion of macro '__MAP4'
123 | #define __MAP5(m,t,a,...) m(t,a), __MAP4(m,__VA_ARGS__)
| ^~~~~~
include/linux/syscalls.h:125:22: note: in expansion of macro '__MAP5'
125 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
| ^~~~~
arch/x86/include/asm/syscall_wrapper.h:230:43: note: in expansion of macro '__MAP'
230 | long ret = __do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
| ^~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1749:63: note: expected 'struct compat_mq_timedreceive2_args *' but argument is of type 'struct compat_mq_timedreceive2_args *'
1749 | struct compat_mq_timedreceive2_args __user *, uargs,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
include/linux/syscalls.h:127:27: note: in definition of macro '__SC_DECL'
127 | #define __SC_DECL(t, a) t a
| ^
include/linux/syscalls.h:123:35: note: in expansion of macro '__MAP4'
123 | #define __MAP5(m,t,a,...) m(t,a), __MAP4(m,__VA_ARGS__)
| ^~~~~~
include/linux/syscalls.h:125:22: note: in expansion of macro '__MAP5'
125 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
| ^~~~~
arch/x86/include/asm/syscall_wrapper.h:225:43: note: in expansion of macro '__MAP'
225 | static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
| ^~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
ipc/mqueue.c: At top level:
ipc/mqueue.c:1749:24: warning: 'struct compat_mq_timedreceive2_args' declared inside parameter list will not be visible outside of this definition or declaration
1749 | struct compat_mq_timedreceive2_args __user *, uargs,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/syscalls.h:127:25: note: in definition of macro '__SC_DECL'
127 | #define __SC_DECL(t, a) t a
| ^
include/linux/syscalls.h:123:35: note: in expansion of macro '__MAP4'
123 | #define __MAP5(m,t,a,...) m(t,a), __MAP4(m,__VA_ARGS__)
| ^~~~~~
include/linux/syscalls.h:125:22: note: in expansion of macro '__MAP5'
125 | #define __MAP(n,...) __MAP##n(__VA_ARGS__)
| ^~~~~
arch/x86/include/asm/syscall_wrapper.h:235:43: note: in expansion of macro '__MAP'
235 | static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
| ^~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
In file included from include/linux/compat.h:34,
from include/net/compat.h:8,
from include/net/scm.h:13,
from include/linux/netlink.h:9,
from ipc/mqueue.c:28:
>> arch/x86/include/asm/syscall_wrapper.h:235:28: error: conflicting types for '__do_sys_mq_timedreceive2_time32'; have 'long int(mqd_t, struct compat_mq_timedreceive2_args *, unsigned int, const long unsigned int, const struct old_timespec32 *)' {aka 'long int(int, struct compat_mq_timedreceive2_args *, unsigned int, const long unsigned int, const struct old_timespec32 *)'}
235 | static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
| ^~~~~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/syscall_wrapper.h:225:28: note: previous declaration of '__do_sys_mq_timedreceive2_time32' with type 'long int(mqd_t, struct compat_mq_timedreceive2_args *, unsigned int, const long unsigned int, const struct old_timespec32 *)' {aka 'long int(int, struct compat_mq_timedreceive2_args *, unsigned int, const long unsigned int, const struct old_timespec32 *)'}
225 | static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
| ^~~~~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
ipc/mqueue.c: In function '__do_sys_mq_timedreceive2_time32':
>> ipc/mqueue.c:1757:13: error: implicit declaration of function 'get_compat_mq_args'; did you mean 'get_compat_msghdr'? [-Wimplicit-function-declaration]
1757 | if (get_compat_mq_args(pargs, uargs))
| ^~~~~~~~~~~~~~~~~~
| get_compat_msghdr
ipc/mqueue.c: At top level:
arch/x86/include/asm/syscall_wrapper.h:225:28: warning: '__do_sys_mq_timedreceive2_time32' used but never defined
225 | static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
| ^~~~~~~~
include/linux/syscalls.h:237:9: note: in expansion of macro '__SYSCALL_DEFINEx'
237 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:230:36: note: in expansion of macro 'SYSCALL_DEFINEx'
230 | #define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~
ipc/mqueue.c:1748:1: note: in expansion of macro 'SYSCALL_DEFINE5'
1748 | SYSCALL_DEFINE5(mq_timedreceive2_time32, mqd_t, mqdes,
| ^~~~~~~~~~~~~~~
vim +/__do_sys_mq_timedreceive2_time32 +133 include/linux/syscalls.h
07fe6e00f6cca6 Al Viro 2013-01-21 126
07fe6e00f6cca6 Al Viro 2013-01-21 127 #define __SC_DECL(t, a) t a
4f59c718521a0f Al Viro 2017-07-08 128 #define __TYPE_AS(t, v) __same_type((__force t)0, v)
4f59c718521a0f Al Viro 2017-07-08 129 #define __TYPE_IS_L(t) (__TYPE_AS(t, 0L))
4f59c718521a0f Al Viro 2017-07-08 130 #define __TYPE_IS_UL(t) (__TYPE_AS(t, 0UL))
4f59c718521a0f Al Viro 2017-07-08 131 #define __TYPE_IS_LL(t) (__TYPE_AS(t, 0LL) || __TYPE_AS(t, 0ULL))
4a0fd5bf0fd079 Al Viro 2013-01-21 132 #define __SC_LONG(t, a) __typeof(__builtin_choose_expr(__TYPE_IS_LL(t), 0LL, 0L)) a
4f59c718521a0f Al Viro 2017-07-08 @133 #define __SC_CAST(t, a) (__force t) a
56062d60f117dc Richard Palethorpe 2024-01-10 134 #define __SC_TYPE(t, a) t
2cf0966683430b Al Viro 2013-01-21 135 #define __SC_ARGS(t, a) a
4a0fd5bf0fd079 Al Viro 2013-01-21 136 #define __SC_TEST(t, a) (void)BUILD_BUG_ON_ZERO(!__TYPE_IS_LL(t) && sizeof(t) > sizeof(long))
1a94bc34768e46 Heiko Carstens 2009-01-14 137
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-03-05 14:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 6:52 [PATCH] mqueue: introduce new do_mq_timedreceive2() [ mq_peek syscall] for non-destructive receive and inspection,fix minor issue,prepared doc Mathura_Kumar
2026-03-05 12:48 ` kernel test robot
2026-03-05 14:39 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-05 18:09 Mathura_Kumar
2026-03-06 0:03 ` Randy Dunlap
2026-03-06 10:36 ` kernel test robot
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=202603051544.tZ2QdW5s-lkp@intel.com \
--to=lkp@intel.com \
--cc=academic1mathura@gmail.com \
--cc=brauner@kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=viro@zeniv.linux.org.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox