Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b620d30 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I5ff4401c540be7d095f1db27370281b7220af030
parent a94ee7f5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
#ifndef __ASSEMBLY__
#include <linux/compiler.h>
#include <linux/types.h>
#include <linux/android_kabi.h>
/*
 * Resources are tree-like, allowing
 * nesting etc..
@@ -23,6 +24,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);
};

/*