提交 5b22bdbb 编写于 作者: Y Yang Yingliang

kabi: fix kabi broken in struct device

hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

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

fix kabi broken in struct device.
It's introduced by a2734433 ("PCI/MSI: Protect msi_desc::masked for multi-MSI").
Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 3763f311
...@@ -1010,7 +1010,6 @@ struct device { ...@@ -1010,7 +1010,6 @@ struct device {
struct dev_pin_info *pins; struct dev_pin_info *pins;
#endif #endif
#ifdef CONFIG_GENERIC_MSI_IRQ #ifdef CONFIG_GENERIC_MSI_IRQ
raw_spinlock_t msi_lock;
struct list_head msi_list; struct list_head msi_list;
#endif #endif
...@@ -1062,7 +1061,23 @@ struct device { ...@@ -1062,7 +1061,23 @@ struct device {
bool offline:1; bool offline:1;
bool of_node_reused:1; bool of_node_reused:1;
#ifdef CONFIG_GENERIC_MSI_IRQ
#if !defined(CONFIG_DEBUG_SPINLOCK) && !defined(CONFIG_DEBUG_LOCK_ALLOC)
#ifndef __GENKSYMS__
union {
raw_spinlock_t msi_lock;
unsigned long kabi_reserve1;
};
#else
KABI_RESERVE(1)
#endif
#else
raw_spinlock_t msi_lock;
KABI_RESERVE(1) KABI_RESERVE(1)
#endif
#else
KABI_RESERVE(1)
#endif
KABI_RESERVE(2) KABI_RESERVE(2)
KABI_RESERVE(3) KABI_RESERVE(3)
KABI_RESERVE(4) KABI_RESERVE(4)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册