From 82c0b56351ecd54d1036b5406bf06656c3c6afab 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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index b275cd285182..339ca1d6b0a1 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; @@ -1510,9 +1510,14 @@ struct task_struct { ANDROID_KABI_RESERVE(1); ANDROID_KABI_RESERVE(2); +#ifdef CONFIG_SYSVIPC + ANDROID_KABI_USE(3, struct sysv_sem sysvsem); + _ANDROID_KABI_REPLACE(ANDROID_KABI_RESERVE(4); ANDROID_KABI_RESERVE(5), struct sysv_shm sysvshm); +#else ANDROID_KABI_RESERVE(3); ANDROID_KABI_RESERVE(4); ANDROID_KABI_RESERVE(5); +#endif ANDROID_KABI_RESERVE(6); ANDROID_KABI_RESERVE(7); ANDROID_KABI_RESERVE(8);