From d5c344a498f587cc777a153e60e78ff14d55f5dc Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 2 May 2020 09:35:50 +0200 Subject: [PATCH] ANDROID: GKI: sched: add Android ABI padding to some structures Try to mitigate potential future driver core api changes by adding a padding to struct user_struct and struct sched_domain. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: Ie8f685122767b690a116193aefd8c5e3b6ef8f17 --- include/linux/sched/topology.h | 5 +++++ include/linux/sched/user.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index 452158253764..173463340280 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -3,6 +3,7 @@ #define _LINUX_SCHED_TOPOLOGY_H #include +#include #include #include @@ -146,6 +147,10 @@ struct sched_domain { struct sched_domain_shared *shared; unsigned int span_weight; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); + /* * Span of all CPUs in this domain. * diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h index dd6a413d9565..6d63a5260130 100644 --- a/include/linux/sched/user.h +++ b/include/linux/sched/user.h @@ -6,6 +6,7 @@ #include #include #include +#include /* * Some day this will be a full-fledged user tracking system.. @@ -42,6 +43,9 @@ struct user_struct { /* Miscellaneous per-user rate limit */ struct ratelimit_state ratelimit; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); ANDROID_OEM_DATA_ARRAY(1, 2); };