From 7be2a2a4c3fe10382ec7facf452b489c9aae2595 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 2 May 2020 09:41:56 +0200 Subject: [PATCH] ANDROID: GKI: mmu_notifier.h: add Android ABI padding to some structures Try to mitigate potential future driver core api changes by adding a padding to struct mmu_notifier_ops and struct mmu_notifier. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: If631445abf20c22830a1c764ff2ccd662a7bd204 --- include/linux/mmu_notifier.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/mmu_notifier.h b/include/linux/mmu_notifier.h index d6c06e140277..ed24db894af8 100644 --- a/include/linux/mmu_notifier.h +++ b/include/linux/mmu_notifier.h @@ -8,6 +8,7 @@ #include #include #include +#include struct mmu_notifier_subscriptions; struct mmu_notifier; @@ -221,6 +222,11 @@ struct mmu_notifier_ops { */ struct mmu_notifier *(*alloc_notifier)(struct mm_struct *mm); void (*free_notifier)(struct mmu_notifier *subscription); + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); + ANDROID_KABI_RESERVE(3); + ANDROID_KABI_RESERVE(4); }; /* @@ -240,6 +246,9 @@ struct mmu_notifier { struct mm_struct *mm; struct rcu_head rcu; unsigned int users; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); }; /**