[PATCH OLK-6.6 v2 0/2] some fix about ifs

Pu Lehui (1): interference: Fix compilation issue Xu Kuohai (1): interference: Fix IFS cannot show in cgroup v1 sub-cgroup drivers/base/arch_topology.c | 1 + include/linux/cgroup.h | 4 ++++ 2 files changed, 5 insertions(+) -- 2.34.1

hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICAOAT -------------------------------- kernel test robot reported the following compilation error: drivers/base/arch_topology.c:811:2: error: implicit declaration of function 'cgroup_ifs_set_smt' [-Werror=implicit-function-declaration] Let's fix it by adding cgroup_ifs_set_smt related header file. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505282112.qVJOB1Zd-lkp@intel.com/ Fixes: edff31302c6d ("interference: Add smt interference track support") Signed-off-by: Pu Lehui <pulehui@huawei.com> --- drivers/base/arch_topology.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index a26169094712..b776ba4127db 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -15,6 +15,7 @@ #include <linux/of.h> #include <linux/slab.h> #include <linux/sched/topology.h> +#include <linux/cgroup.h> #include <linux/cpuset.h> #include <linux/cpumask.h> #include <linux/init.h> -- 2.34.1

From: Xu Kuohai <xukuohai@huawei.com> hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICAOAT -------------------------------- Fix IFS cannot show in cgroup v1 sub-cgroup Fixes: 28d4e4995d76 ("interference: Add cgroup v1 support for CGROUP_IFS") Signed-off-by: Xu Kuohai <xukuohai@huawei.com> Signed-off-by: Pu Lehui <pulehui@huawei.com> --- include/linux/cgroup.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d6f43bca5ecb..29fb4556d123 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -905,6 +905,10 @@ static inline struct cgroup_ifs *cgroup_ifs(struct cgroup *cgrp) static inline struct cgroup_ifs *task_ifs(struct task_struct *task) { +#ifdef CONFIG_CGROUP_CPUACCT + if (!cgroup_subsys_on_dfl(cpuacct_cgrp_subsys)) + return cgroup_ifs(task_cgroup(task, cpuacct_cgrp_id)); +#endif return cgroup_ifs(task_dfl_cgroup(task)); } -- 2.34.1

反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/16527 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/DLG... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/16527 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/DLG...
participants (2)
-
patchwork bot
-
Pu Lehui