提交 129e4923 编写于 作者: W Wang ShaoBo 提交者: Zheng Zengkai

kabi: reserve space for fwnode.h

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4KFY7?from=project-issue
CVE: NA

-------------------------------

reserve space for struct fwnode_handle and fwnode_operations.
Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 b75593fd
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#define _LINUX_FWNODE_H_ #define _LINUX_FWNODE_H_
#include <linux/types.h> #include <linux/types.h>
#include <linux/kabi.h>
struct fwnode_operations; struct fwnode_operations;
struct device; struct device;
...@@ -18,6 +19,8 @@ struct fwnode_handle { ...@@ -18,6 +19,8 @@ struct fwnode_handle {
struct fwnode_handle *secondary; struct fwnode_handle *secondary;
const struct fwnode_operations *ops; const struct fwnode_operations *ops;
struct device *dev; struct device *dev;
KABI_RESERVE(1)
KABI_RESERVE(2)
}; };
/** /**
...@@ -147,6 +150,10 @@ struct fwnode_operations { ...@@ -147,6 +150,10 @@ struct fwnode_operations {
struct fwnode_endpoint *endpoint); struct fwnode_endpoint *endpoint);
int (*add_links)(const struct fwnode_handle *fwnode, int (*add_links)(const struct fwnode_handle *fwnode,
struct device *dev); struct device *dev);
KABI_RESERVE(1)
KABI_RESERVE(2)
KABI_RESERVE(3)
KABI_RESERVE(4)
}; };
#define fwnode_has_op(fwnode, op) \ #define fwnode_has_op(fwnode, op) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册