From c6adf0c7b9f5daa9959994c2876872724ff4a706 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 2 May 2020 09:39:06 +0200 Subject: [PATCH] ANDROID: GKI: ioport.h: add Android ABI padding to a structure Try to mitigate potential future driver core api changes by adding a padding to struct resource. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: I5ff4401c540be7d095f1db27370281b7220af030 --- include/linux/ioport.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/ioport.h b/include/linux/ioport.h index 5135d4b86cd6..d36041c1cd42 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h @@ -13,6 +13,7 @@ #include #include #include +#include /* * Resources are tree-like, allowing * nesting etc.. @@ -24,6 +25,11 @@ struct resource { unsigned long flags; unsigned long desc; struct resource *parent, *sibling, *child; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); + ANDROID_KABI_RESERVE(3); + ANDROID_KABI_RESERVE(4); }; /*