From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android14-6.1-2025-05 4/4] include/linux/compiler_types.h:316:27: error: expression in static assertion is not an integer
Date: Tue, 30 Sep 2025 13:15:50 +0800 [thread overview]
Message-ID: <202509301304.Jke4FMLR-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android14-6.1-2025-05
head: 8467da20fd06f8d73f52ec5289cb41f0496ead78
commit: 24f186b6215a84672d5bb05746085098c32c4995 [4/4] UPSTREAM: af_unix: Allocate struct unix_vertex for each inflight AF_UNIX fd.
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20250930/202509301304.Jke4FMLR-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250930/202509301304.Jke4FMLR-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/202509301304.Jke4FMLR-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:21,
from net/unix/garbage.c:66:
net/unix/garbage.c: In function 'unix_free_vertices':
net/unix/garbage.c:108:59: error: 'struct scm_fp_list' has no member named 'vertices'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~
include/linux/container_of.h:18:33: note: in definition of macro 'container_of'
18 | void *__mptr = (void *)(ptr); \
| ^~~
include/linux/list.h:531:9: note: in expansion of macro 'list_entry'
531 | list_entry((ptr)->next, type, member)
| ^~~~~~~~~~
include/linux/list.h:761:20: note: in expansion of macro 'list_first_entry'
761 | for (pos = list_first_entry(head, typeof(*pos), member), \
| ^~~~~~~~~~~~~~~~
net/unix/garbage.c:108:9: note: in expansion of macro 'list_for_each_entry_safe'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/container_of.h:5:
net/unix/garbage.c:108:59: error: 'struct scm_fp_list' has no member named 'vertices'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert'
19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:19:23: note: in expansion of macro '__same_type'
19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:520:9: note: in expansion of macro 'container_of'
520 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
include/linux/list.h:531:9: note: in expansion of macro 'list_entry'
531 | list_entry((ptr)->next, type, member)
| ^~~~~~~~~~
include/linux/list.h:761:20: note: in expansion of macro 'list_first_entry'
761 | for (pos = list_first_entry(head, typeof(*pos), member), \
| ^~~~~~~~~~~~~~~~
net/unix/garbage.c:108:9: note: in expansion of macro 'list_for_each_entry_safe'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
net/unix/garbage.c:108:59: error: 'struct scm_fp_list' has no member named 'vertices'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert'
19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
include/linux/list.h:520:9: note: in expansion of macro 'container_of'
520 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
include/linux/list.h:531:9: note: in expansion of macro 'list_entry'
531 | list_entry((ptr)->next, type, member)
| ^~~~~~~~~~
include/linux/list.h:761:20: note: in expansion of macro 'list_first_entry'
761 | for (pos = list_first_entry(head, typeof(*pos), member), \
| ^~~~~~~~~~~~~~~~
net/unix/garbage.c:108:9: note: in expansion of macro 'list_for_each_entry_safe'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler_types.h:316:27: error: expression in static assertion is not an integer
316 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert'
19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:19:23: note: in expansion of macro '__same_type'
19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:520:9: note: in expansion of macro 'container_of'
520 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
include/linux/list.h:531:9: note: in expansion of macro 'list_entry'
531 | list_entry((ptr)->next, type, member)
| ^~~~~~~~~~
include/linux/list.h:761:20: note: in expansion of macro 'list_first_entry'
761 | for (pos = list_first_entry(head, typeof(*pos), member), \
| ^~~~~~~~~~~~~~~~
net/unix/garbage.c:108:9: note: in expansion of macro 'list_for_each_entry_safe'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/preempt.h:12,
from include/linux/spinlock.h:56,
from include/linux/kref.h:16,
from include/linux/mm_types.h:8,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from net/unix/garbage.c:68:
net/unix/garbage.c:108:59: error: 'struct scm_fp_list' has no member named 'vertices'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~
include/linux/list.h:665:27: note: in definition of macro 'list_entry_is_head'
665 | (&pos->member == (head))
| ^~~~
net/unix/garbage.c:108:9: note: in expansion of macro 'list_for_each_entry_safe'
108 | list_for_each_entry_safe(vertex, next_vertex, &fpl->vertices, entry) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
net/unix/garbage.c: In function 'unix_prepare_fpl':
net/unix/garbage.c:127:46: error: 'struct scm_fp_list' has no member named 'vertices'
127 | list_add(&vertex->entry, &fpl->vertices);
| ^~
vim +316 include/linux/compiler_types.h
eb111869301e15 Rasmus Villemoes 2019-09-13 314
d15155824c5014 Will Deacon 2017-10-24 315 /* Are two types/vars the same type (ignoring qualifiers)? */
d15155824c5014 Will Deacon 2017-10-24 @316 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
d15155824c5014 Will Deacon 2017-10-24 317
:::::: The code at line 316 was first introduced by commit
:::::: d15155824c5014803d91b829736d249c500bdda6 linux/compiler.h: Split into compiler.h and compiler_types.h
:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-09-30 5:16 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=202509301304.Jke4FMLR-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.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.