提交 cf48b9e5 编写于 作者: Y Yu Liao 提交者: Zheng Zengkai

kabi: reserve space for time and workqueue subsystem related structure

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4GUAB
CVE: NA

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

Reserve space for timer and workqueue subsystem.
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: Nwangxiongfeng 00379786 <wangxiongfeng2@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 cdbf61a3
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#ifndef _LINUX_TIMER_H #ifndef _LINUX_TIMER_H
#define _LINUX_TIMER_H #define _LINUX_TIMER_H
#include <linux/kabi.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/ktime.h> #include <linux/ktime.h>
#include <linux/stddef.h> #include <linux/stddef.h>
...@@ -21,6 +22,11 @@ struct timer_list { ...@@ -21,6 +22,11 @@ struct timer_list {
#ifdef CONFIG_LOCKDEP #ifdef CONFIG_LOCKDEP
struct lockdep_map lockdep_map; struct lockdep_map lockdep_map;
#endif #endif
KABI_RESERVE(1)
KABI_RESERVE(2)
KABI_RESERVE(3)
KABI_RESERVE(4)
}; };
#ifdef CONFIG_LOCKDEP #ifdef CONFIG_LOCKDEP
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#ifndef _LINUX_WORKQUEUE_H #ifndef _LINUX_WORKQUEUE_H
#define _LINUX_WORKQUEUE_H #define _LINUX_WORKQUEUE_H
#include <linux/kabi.h>
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/linkage.h> #include <linux/linkage.h>
#include <linux/bitops.h> #include <linux/bitops.h>
...@@ -106,6 +107,11 @@ struct work_struct { ...@@ -106,6 +107,11 @@ struct work_struct {
#ifdef CONFIG_LOCKDEP #ifdef CONFIG_LOCKDEP
struct lockdep_map lockdep_map; struct lockdep_map lockdep_map;
#endif #endif
KABI_RESERVE(1)
KABI_RESERVE(2)
KABI_RESERVE(3)
KABI_RESERVE(4)
}; };
#define WORK_DATA_INIT() ATOMIC_LONG_INIT((unsigned long)WORK_STRUCT_NO_POOL) #define WORK_DATA_INIT() ATOMIC_LONG_INIT((unsigned long)WORK_STRUCT_NO_POOL)
...@@ -121,6 +127,11 @@ struct delayed_work { ...@@ -121,6 +127,11 @@ struct delayed_work {
int cpu; int cpu;
/* delayed_work private data, only used in pciehp now */ /* delayed_work private data, only used in pciehp now */
unsigned long data; unsigned long data;
KABI_RESERVE(1)
KABI_RESERVE(2)
KABI_RESERVE(3)
KABI_RESERVE(4)
}; };
struct rcu_work { struct rcu_work {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册