ANDROID: GKI: add some padding to some driver core structures
These structures are fundamental to implementing fw_devlink and sync_state(). Since they are still evolving, add some padding in case we need to backport any important bug fixes. struct device_link struct class struct fwnode_handle struct fwnode_link Bug: 183615740 Signed-off-by: Saravana Kannan <saravanak@google.com> Change-Id: Id9daf7cf9ae5d94fb0134144f8220a241ccbaef8
This commit is contained in:
@@ -582,6 +582,8 @@ struct device_link {
|
|||||||
struct rcu_head rcu_head;
|
struct rcu_head rcu_head;
|
||||||
#endif
|
#endif
|
||||||
bool supplier_preactivated; /* Owned by consumer probe. */
|
bool supplier_preactivated; /* Owned by consumer probe. */
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline struct device *kobj_to_dev(struct kobject *kobj)
|
static inline struct device *kobj_to_dev(struct kobject *kobj)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#include <linux/klist.h>
|
#include <linux/klist.h>
|
||||||
#include <linux/pm.h>
|
#include <linux/pm.h>
|
||||||
#include <linux/device/bus.h>
|
#include <linux/device/bus.h>
|
||||||
|
#include <linux/android_kabi.h>
|
||||||
|
|
||||||
struct device;
|
struct device;
|
||||||
struct fwnode_handle;
|
struct fwnode_handle;
|
||||||
@@ -75,6 +76,7 @@ struct class {
|
|||||||
const struct dev_pm_ops *pm;
|
const struct dev_pm_ops *pm;
|
||||||
|
|
||||||
struct subsys_private *p;
|
struct subsys_private *p;
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct class_dev_iter {
|
struct class_dev_iter {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
|
#include <linux/android_kabi.h>
|
||||||
|
|
||||||
struct fwnode_operations;
|
struct fwnode_operations;
|
||||||
struct device;
|
struct device;
|
||||||
@@ -34,6 +35,7 @@ struct fwnode_handle {
|
|||||||
struct list_head suppliers;
|
struct list_head suppliers;
|
||||||
struct list_head consumers;
|
struct list_head consumers;
|
||||||
u8 flags;
|
u8 flags;
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fwnode_link {
|
struct fwnode_link {
|
||||||
@@ -41,6 +43,9 @@ struct fwnode_link {
|
|||||||
struct list_head s_hook;
|
struct list_head s_hook;
|
||||||
struct fwnode_handle *consumer;
|
struct fwnode_handle *consumer;
|
||||||
struct list_head c_hook;
|
struct list_head c_hook;
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
|
ANDROID_KABI_RESERVE(3);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user