From b0c456e92bdd3cf7c15fca6ee194d4dcd49ede6d Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 10 Mar 2020 18:41:29 +0100 Subject: [PATCH] ANDROID: GKI: module.h: add Android ABI padding to some structures Try to mitigate potential future driver core api changes by adding a padding to struct module. Based on a patch from Michal Marek from the SLES kernel Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: I2a764e9eac88f20e50d192112235da6d2f0f83bc --- include/linux/module.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/module.h b/include/linux/module.h index 1c513aefb788..e4bb2855f0c7 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -489,6 +490,10 @@ struct module { struct error_injection_entry *ei_funcs; unsigned int num_ei_funcs; #endif + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); + ANDROID_KABI_RESERVE(3); + ANDROID_KABI_RESERVE(4); } ____cacheline_aligned __randomize_layout; #ifndef MODULE_ARCH_INIT #define MODULE_ARCH_INIT {}