提交 cf2db84b 编写于 作者: T Tang Yizhou 提交者: Yang Yingliang

share_pool: Fix warning missing braces around initializer

ascend inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI
CVE: NA

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

Fix warnings: missing braces around initializer
Signed-off-by: NTang Yizhou <tangyizhou@huawei.com>
Reviewed-by: NDing Tianhong <dingtianhong@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 005dab3b
......@@ -89,7 +89,7 @@ static DEFINE_IDR(sp_stat_idr);
static DECLARE_RWSEM(sp_stat_sem);
/* for kthread buff_module_guard_work */
static struct sp_proc_stat kthread_stat = {0};
static struct sp_proc_stat kthread_stat;
/* The caller must hold sp_stat_sem */
static struct sp_proc_stat *sp_get_proc_stat_locked(int tgid)
......@@ -203,7 +203,7 @@ struct sp_spa_stat {
unsigned long dvpp_va_size;
};
static struct sp_spa_stat spa_stat = {0};
static struct sp_spa_stat spa_stat;
/* statistics of all sp group born from sp_alloc and k2u(spg) */
struct sp_spg_stat {
......@@ -211,7 +211,7 @@ struct sp_spg_stat {
atomic64_t spa_total_size;
};
static struct sp_spg_stat spg_stat = {0};
static struct sp_spg_stat spg_stat;
/*** Global share pool VA allocator ***/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册