* [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
@ 2025-09-30 5:15 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-30 5:15 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-30 5:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-30 5:15 [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 kernel test robot
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.