Skip to content
Snippets Groups Projects
Commit 293d508e authored by 卢佳琳's avatar 卢佳琳 Committed by Cheng Jian
Browse files

cgroup: Fix kabi broken by files_cgroup introduced

hulk inclusion
category: feature/cgroups
bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=7


CVE: NA

--------

The patch adds ifndef(__GENKSYMS__) into cgroup_subsys.h, and this
change is more nasty than it looks. It hides the fact that that we change
the layout of "struct cgroup" and "struct css_set", they both have the
subsys[CGROUP_SUBSYS_COUNT] member. I hope this is fine, the modular code
has no reasons to access the private members after ->subsys[], and the
helpers like cgroup_sane_behavior() shouldn't be used by external modules.

The patch also fixes the following compile warning caused by the fix kabi
broken.

Signed-off-by: default avatarLu Jialin <lujialin4@huawei.com>
Reviewed-by: default avatarChen Zhou <chenzhou10@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 207d25d6
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment