hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I905SE CVE: NA
--------------------------------
Add kabi slots in bin_attribute struct for future expansion.
struct size(byte) reserve(8*byte) now(byte) bin_attribute 64 1 72
Signed-off-by: Long Li leo.lilong@huawei.com --- include/linux/sysfs.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index fd3fe5c8c17f..20fbe396d471 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -13,6 +13,7 @@ #ifndef _SYSFS_H_ #define _SYSFS_H_
+#include <linux/kabi.h> #include <linux/kernfs.h> #include <linux/compiler.h> #include <linux/errno.h> @@ -183,6 +184,8 @@ struct bin_attribute { char *, loff_t, size_t); int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr, struct vm_area_struct *vma); + + KABI_RESERVE(1) };
/**