From 769a5cfdc17b98d8e0bd491d45f5651180e42196 Mon Sep 17 00:00:00 2001 From: nullptr-t-oss <127822226+nullptr-t-oss@users.noreply.github.com> Date: Wed, 8 Apr 2026 09:18:23 +0000 Subject: [PATCH] ABI: use ABI padding for SYSVIPC This commit allows us to enable CONFIG_SYSVIPC in defconfig without breaking kernel ABI. Signed-off-by: nullptr-t-oss <127822226+nullptr-t-oss@users.noreply.github.com> --- include/linux/sched.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index b275cd285182..f03e0d5e49c1 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1074,8 +1074,8 @@ struct task_struct { struct nameidata *nameidata; #ifdef CONFIG_SYSVIPC - struct sysv_sem sysvsem; - struct sysv_shm sysvshm; + // struct sysv_sem sysvsem; + // struct sysv_shm sysvshm; #endif #ifdef CONFIG_DETECT_HUNG_TASK unsigned long last_switch_count; @@ -1513,9 +1513,15 @@ struct task_struct { ANDROID_KABI_RESERVE(3); ANDROID_KABI_RESERVE(4); ANDROID_KABI_RESERVE(5); + +#ifdef CONFIG_SYSVIPC + ANDROID_KABI_USE(6, struct sysv_sem sysvsem); + _ANDROID_KABI_REPLACE(ANDROID_KABI_RESERVE(7); ANDROID_KABI_RESERVE(8), struct sysv_shm sysvshm); +#else ANDROID_KABI_RESERVE(6); ANDROID_KABI_RESERVE(7); ANDROID_KABI_RESERVE(8); +#endif /* * New fields for task_struct should be added above here, so that