Skip to contentSkip to conversation

linux-next: build warning after merge of the cgroup tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Jul 11, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the cgroup tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

kernel/cgroup/cgroup.c:503:36: warning: 'cgroup_tryget_css' defined but not used [-Wunused-function]
503 | static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp,

      |                                    ^~~~~~~~~~~~~~~~~

Introduced by commit

1299eb2b0ad5 ("cgroup: minor cleanup for cgroup_extra_stat_show()")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the cgroup tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

Quoted 7 lines

kernel/cgroup/cgroup.c:503:36: warning: 'cgroup_tryget_css' defined but not used [-Wunused-function]
503 | static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp,

      |                                    ^~~~~~~~~~~~~~~~~

Introduced by commit

1299eb2b0ad5 ("cgroup: minor cleanup for cgroup_extra_stat_show()")

Miaohe, can you send a patch to either add __maybe_unused to cgroup_tryget_css() or also put it inside CONFIG_CGROUP_SCHED?

Thanks.

Signature · 1 line
tejun
#2 lore raw
Quoted 10 lines · Tejun Heo
Quoted 9 lines · Stephen Rothwell

Hi all,

After merging the cgroup tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

kernel/cgroup/cgroup.c:503:36: warning: 'cgroup_tryget_css' defined but not used [-Wunused-function]
503 | static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp,

      |                                    ^~~~~~~~~~~~~~~~~
Quoted 6 lines
Quoted 3 lines

Introduced by commit

1299eb2b0ad5 ("cgroup: minor cleanup for cgroup_extra_stat_show()")

Miaohe, can you send a patch to either add __maybe_unused to cgroup_tryget_css() or also put it inside CONFIG_CGROUP_SCHED?

Will do. Sorry for my mistake.

Thanks.