ANDROID: GKI: add some padding to some driver core structures

It was requested that the following structures get some padding in order
to be able to handle future issues/bugs/fixes that might arise:

  struct dev_links_info
  struct device_link
  struct fwnode_handle

Bug: 163662096
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie26f422c590f9ddbe99f0885f36da3feec64e9a6
Signed-off-by: Will McVicker <willmcvicker@google.com>
This commit is contained in:
Greg Kroah-Hartman 2020-08-12 17:49:43 +02:00 committed by Will McVicker
parent f2cce51e2b
commit 1f0404339b
2 changed files with 16 additions and 0 deletions

View file

@ -901,6 +901,11 @@ struct device_link {
struct rcu_head rcu_head;
#endif
bool supplier_preactivated; /* Owned by consumer probe. */
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
ANDROID_KABI_RESERVE(3);
ANDROID_KABI_RESERVE(4);
};
/**
@ -934,6 +939,11 @@ struct dev_links_info {
struct list_head defer_sync;
bool need_for_probe;
enum dl_dev_state status;
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
ANDROID_KABI_RESERVE(3);
ANDROID_KABI_RESERVE(4);
};
/**

View file

@ -13,6 +13,7 @@
#define _LINUX_FWNODE_H_
#include <linux/types.h>
#include <linux/android_kabi.h>
struct fwnode_operations;
struct device;
@ -21,6 +22,11 @@ struct fwnode_handle {
struct fwnode_handle *secondary;
const struct fwnode_operations *ops;
struct device *dev;
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
ANDROID_KABI_RESERVE(3);
ANDROID_KABI_RESERVE(4);
};
/**