From 064d2c58f29d221266b5cdcdd637512a54962b9a 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 27642ca15d93..341bc839cc83 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h @@ -14,6 +14,7 @@ #include #include #include +#include /* * Resources are tree-like, allowing * nesting etc.. @@ -25,6 +26,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); }; /*