* [android-common:android15-6.6 4/4] include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
@ 2024-12-03 6:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-03 6:16 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android15-6.6
head: fa2752f439942a680289ebfcc83a4ae05282e5a7
commit: d66e9166bfa175691dd2d0ad7f65c9fec54aa520 [4/4] ANDROID: fix ABI-break in struct cgroup_root
config: arm-s5pv210_defconfig (https://download.01.org/0day-ci/archive/20241203/202412031408.YivwsbGS-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412031408.YivwsbGS-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/202412031408.YivwsbGS-lkp@intel.com/
Note: the android-common/android15-6.6 HEAD fa2752f439942a680289ebfcc83a4ae05282e5a7 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/mm_types.h:19,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from init/main.c:17:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/rhashtable-types.h:15,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/sched/signal.h:7,
from include/linux/oom.h:6,
from mm/oom_kill.c:21:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mm/oom_kill.c:426:6: warning: no previous prototype for 'dump_tasks' [-Wmissing-prototypes]
426 | void dump_tasks(struct oom_control *oc)
| ^~~~~~~~~~
--
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/mm_types.h:19,
from include/linux/mmzone.h:22,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from mm/vmscan.c:15:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mm/vmscan.c:1043:15: warning: no previous prototype for 'shrink_slab' [-Wmissing-prototypes]
1043 | unsigned long shrink_slab(gfp_t gfp_mask, int nid,
| ^~~~~~~~~~~
--
In file included from include/linux/dcache.h:17,
from include/linux/fs.h:8,
from mm/shmem.c:24:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mm/shmem.c:2196:12: warning: no previous prototype for 'shmem_fault' [-Wmissing-prototypes]
2196 | vm_fault_t shmem_fault(struct vm_fault *vmf)
| ^~~~~~~~~~~
--
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/rhashtable-types.h:15,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/cgroup.h:12,
from include/linux/memcontrol.h:13,
from mm/workingset.c:8:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
mm/workingset.c:210:6: warning: no previous prototype for 'unpack_shadow' [-Wmissing-prototypes]
210 | void unpack_shadow(void *shadow, int *memcgidp, pg_data_t **pgdat,
| ^~~~~~~~~~~~~
--
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/srcu.h:21,
from include/linux/notifier.h:16,
from include/linux/clk.h:14,
from lib/vsprintf.c:22:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vsprintf.c: In function 'va_format':
lib/vsprintf.c:1682:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1682 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
| ^~~
--
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/rhashtable-types.h:15,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/energy_model.h:5,
from kernel/sched/fair.c:23:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:5425:6: warning: no previous prototype for 'set_next_entity' [-Wmissing-prototypes]
5425 | void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
| ^~~~~~~~~~~~~~~
kernel/sched/fair.c:13216:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes]
13216 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:13218:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes]
13218 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:13223:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes]
13223 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:13225:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes]
13225 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/mm_types.h:19,
from include/linux/mmzone.h:22,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from kernel/power/wakeup_reason.c:20:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/power/wakeup_reason.c: In function '__log_abort_or_abnormal_wake':
kernel/power/wakeup_reason.c:234:9: warning: function '__log_abort_or_abnormal_wake' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
234 | vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
| ^~~~~~~~~
--
In file included from include/linux/timer.h:10,
from include/linux/workqueue.h:9,
from include/linux/rhashtable-types.h:15,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
>> include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]"
43 | _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
| ^~~~~~~~~~~~~~
include/linux/android_kabi.h:67:17: note: in expansion of macro '__ANDROID_KABI_CHECK_SIZE_ALIGN'
67 | __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/android_kabi.h:157:9: note: in expansion of macro '_ANDROID_KABI_REPLACE'
157 | _ANDROID_KABI_REPLACE(_ANDROID_BACKPORT_RESERVE_ARRAY(number, bytes), _new)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/cgroup-defs.h:588:9: note: in expansion of macro 'ANDROID_BACKPORT_USE_ARRAY'
588 | ANDROID_BACKPORT_USE_ARRAY(1, CGROUP_SUBSYS_COUNT * sizeof(atomic_t),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:122:35: warning: initialized field overwritten [-Woverride-init]
122 | [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:122:35: note: (near initialization for 'hrtimer_clock_to_base_table[0]')
kernel/time/hrtimer.c:123:35: warning: initialized field overwritten [-Woverride-init]
123 | [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:123:35: note: (near initialization for 'hrtimer_clock_to_base_table[1]')
kernel/time/hrtimer.c:124:35: warning: initialized field overwritten [-Woverride-init]
124 | [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:124:35: note: (near initialization for 'hrtimer_clock_to_base_table[7]')
kernel/time/hrtimer.c:125:35: warning: initialized field overwritten [-Woverride-init]
125 | [CLOCK_TAI] = HRTIMER_BASE_TAI,
| ^~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:125:35: note: (near initialization for 'hrtimer_clock_to_base_table[11]')
vim +43 include/linux/android_kabi.h
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 36
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 37 /*
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 38 * Worker macros, don't use these, use the ones without a leading '_'
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 39 */
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 40
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 41 #define __ANDROID_KABI_CHECK_SIZE_ALIGN(_orig, _new) \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 42 union { \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 @43 _Static_assert(sizeof(struct{_new;}) <= sizeof(struct{_orig;}), \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 44 __FILE__ ":" __stringify(__LINE__) ": " \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 45 __stringify(_new) \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 46 " is larger than " \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 47 __stringify(_orig) ); \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 48 _Static_assert(__alignof__(struct{_new;}) <= __alignof__(struct{_orig;}), \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 49 __FILE__ ":" __stringify(__LINE__) ": " \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 50 __stringify(_orig) \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 51 " is not aligned the same as " \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 52 __stringify(_new) ); \
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 53 }
804873a198f8dcb Greg Kroah-Hartman 2020-03-11 54
:::::: The code at line 43 was first introduced by commit
:::::: 804873a198f8dcb3f9c414ab5dcf40a1fd14b918 ANDROID: GKI: add android_kabi.h
:::::: TO: Greg Kroah-Hartman <gregkh@google.com>
:::::: CC: Jaskaran Singh <quic_jasksing@quicinc.com>
--
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:[~2024-12-03 6:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 6:16 [android-common:android15-6.6 4/4] include/linux/android_kabi.h:43:17: error: static assertion failed: "include/linux/cgroup-defs.h:588: struct callback_head rcu is larger than u8 __attribute__((__aligned__(8))) android_backport_reserved1[CGROUP_SUBSYS_COUNT * sizeof(atomic_t)]" 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.