linux-next: build failure after merge of the akpm-current tree
Subsystems (4)
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this:
mm/vmscan.c: In function 'sane_reclaim':mm/vmscan.c:178:2: error: implicit declaration of function 'cgroup_on_dfl' [-Werror=implicit-function-declaration]
if (cgroup_on_dfl(memcg->css.cgroup))
^
Caused by commit
d08255ab4d66 ("vmscan: fix sane_reclaim helper for legacy memcg")
interacting with commit
9e10a130d9b6 ("cgroup: replace cgroup_on_dfl() tests in controllers with cgroup_subsys_on_dfl()")
from the cgroup tree.
I don't know what the correct firx is here (help, please) so I have just open coded the cgroup_on_dfl() call for now:
From: Stephen Rothwell <[email protected]>
Date: Mon, 21 Sep 2015 14:06:17 +1000
Subject: [PATCH] vmscan-fix-sane_reclaim-helper-for-legacy-memcg-fix
--- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmscan.c +1 -1
@@ -175,7 +175,7 @@ static bool sane_reclaim(struct scan_control *sc)if (!memcg)return true;#ifdef CONFIG_CGROUP_WRITEBACK -if (cgroup_on_dfl (memcg->css.cgroup)) +if (memcg->css.cgroup->root == &cgrp_dfl_root)return true;#endif return false;
Signature · 5 lines
2.5.1 -- Cheers, Stephen Rothwell [email protected]
Michal Hocko
reviewerQuoted 14 lines · Stephen Rothwell
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (
x86_64allmodconfig) failed like this:
mm/vmscan.c: In function 'sane_reclaim':mm/vmscan.c:178:2: error: implicit declaration of function 'cgroup_on_dfl' [-Werror=implicit-function-declaration]
if (cgroup_on_dfl(memcg->css.cgroup))
^Caused by commit
d08255ab4d66("vmscan: fixsane_reclaimhelper for legacy memcg")
Quoted 8 lines
interacting with commit
9e10a130d9b6("cgroup: replacecgroup_on_dfl()tests in controllers withcgroup_subsys_on_dfl()")from the cgroup tree.
I don't know what the correct firx is here (help, please) so I have just open coded the
cgroup_on_dfl()call for now:
AFAIU your fix is correct but using cgroup_subsys_on_dfl(memory_cgrp_subsys) is more appropriate:
mm/vmscan.c +1 -1
@@ -176,7 +176,7 @@ static bool sane_reclaim(struct scan_control *sc)if (!memcg)return true;#ifdef CONFIG_CGROUP_WRITEBACK -if (cgroup_on_dfl (memcg->css.cgroup)) +if (cgroup_subsys_on_dfl (memory_cgrp_subsys))return true;#endif return false;
Signature · 2 lines
Michal Hocko SUSE Labs
Hi Michal, Vladimir,
Quoted 8 lines · On Mon, 21 Sep 2015 09:58:53 +0200 Michal Hocko <[email protected]> wrote:
AFAIU your fix is correct but using
cgroup_subsys_on_dfl(memory_cgrp_subsys)is more appropriate:mm/vmscan.c +0
-0
mm/vmscan.c static bool sane_reclaim(struct scan_control *sc) · line 182
Quoted 8 lines
mm/vmscan.c +1
-1@@ -176,7 +176,7 @@ static bool sane_reclaim(struct scan_control *sc)if (!memcg)return true;#ifdef CONFIG_CGROUP_WRITEBACK -if (cgroup_on_dfl (memcg->css.cgroup)) +if (cgroup_subsys_on_dfl (memory_cgrp_subsys))return true;#endif return false;
Thanks, I will do that from tomorrow.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 12 lines · Stephen Rothwell
After merging the akpm-current tree, today's linux-next build (
x86_64allmodconfig) failed like this:
mm/vmscan.c: In function 'sane_reclaim':mm/vmscan.c:178:2: error: implicit declaration of function 'cgroup_on_dfl' [-Werror=implicit-function-declaration]
if (cgroup_on_dfl(memcg->css.cgroup))
^Caused by commit
d08255ab4d66("vmscan: fixsane_reclaimhelper for legacy memcg")
Quoted 8 lines
interacting with commit
9e10a130d9b6("cgroup: replacecgroup_on_dfl()tests in controllers withcgroup_subsys_on_dfl()")from the cgroup tree.
I don't know what the correct firx is here (help, please) so I have just open coded the
cgroup_on_dfl()call for now:
Quoting Tejun (http://www.spinics.net/lists/linux-mm/msg94556.html):
: Just a heads-up. I'm applying a patch which replaces cgroup_on_dfl() : with cgroup_subsys_on_dfl() to cgroup/for-4.4, so this patch would : need to be adjusted to do cgroup_subsys_on_dfl(memory_cgrp_subsys) : instead.
Thanks,
Vladimir