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 <gregkh@google.com> Change-Id: I5ff4401c540be7d095f1db27370281b7220af030
This commit is contained in:
committed by
Carlos Llamas
parent
80b63f2f01
commit
abc5541f4c
@@ -14,6 +14,7 @@
|
|||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
#include <linux/minmax.h>
|
#include <linux/minmax.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
#include <linux/android_kabi.h>
|
||||||
/*
|
/*
|
||||||
* Resources are tree-like, allowing
|
* Resources are tree-like, allowing
|
||||||
* nesting etc..
|
* nesting etc..
|
||||||
@@ -25,6 +26,11 @@ struct resource {
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
unsigned long desc;
|
unsigned long desc;
|
||||||
struct resource *parent, *sibling, *child;
|
struct resource *parent, *sibling, *child;
|
||||||
|
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
|
ANDROID_KABI_RESERVE(3);
|
||||||
|
ANDROID_KABI_RESERVE(4);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user