lkml.org 
[lkml]   [2023]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: linux-next: build warning after merge of the cgroup tree
From
Date
On 2023/7/11 9:22, Tejun Heo wrote:
> On Tue, Jul 11, 2023 at 11:15:09AM +1000, Stephen Rothwell wrote:
>> 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()")
>
> 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.

\
 
 \ /
  Last update: 2023-07-11 04:07    [W:0.035 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site