linux-next: build failure after merge of the cgroup tree
Subsystems (2)
Hi all,
After merging the cgroup tree, today's linux-next build (x86_64 allmodconfig) failed like this:
kernel/cgroup/cgroup.c:5275:26: error: 'CFTYPE_PRESSURE' undeclared here (not in a function)
5275 | .flags = CFTYPE_PRESSURE,
| ^~~~~~~~~~~~~~~
Caused by commit
8a693f7766f9 ("cgroup: Remove CFTYPE_PRESSURE")
inteacting with commits
52b1364ba0b1 ("sched/psi: Add PSI_IRQ to track IRQ/SOFTIRQ pressure") 34f26a15611a ("sched/psi: Per-cgroup PSI accounting disable/re-enable interface")
from the tip tree.
I have applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Mon, 12 Sep 2022 16:15:33 +1000
Subject: [PATCH] sched/psi: fix up for "cgroup: Remove CFTYPE_PRESSURE"
--- kernel/cgroup/cgroup.c | 2 -- 1 file changed, 2 deletions(-)
kernel/cgroup/cgroup.c +0 -2
@@ -5272,7 +5272,6 @@ static struct cftype cgroup_psi_files[] = {#ifdef CONFIG_IRQ_TIME_ACCOUNTING { .name = "irq.pressure", - .flags = CFTYPE_PRESSURE, .file_offset = offsetof(struct cgroup, psi_files[PSI_IRQ]), .seq_show = cgroup_irq_pressure_show, .write = cgroup_irq_pressure_write,
@@ -5282,7 +5281,6 @@ static struct cftype cgroup_psi_files[] = {#endif { .name = "cgroup.pressure", - .flags = CFTYPE_PRESSURE, .seq_show = cgroup_pressure_show, .write = cgroup_pressure_write, },
Signature · 5 lines
2.35.1 -- Cheers, Stephen Rothwell
Quoted 4 lines · Stephen Rothwell
Hi all,
After merging the cgroup tree, today's linux-next build (
x86_64allmodconfig) failed like this:
Hmm,. TJ should I base sched/psi on top of drivers-core-next and your cgroup tree?
Tejun Heo
maintainerQuoted 8 lines · Peter Zijlstra
Quoted 4 lines · Stephen Rothwell
Hi all,
After merging the cgroup tree, today's linux-next build (
x86_64allmodconfig) failed like this:Hmm,. TJ should I base sched/psi on top of drivers-core-next and your cgroup tree?
Yeah, this is kinda nasty. Lemme just pull drivers-core-next into cgorup/for-6.1 so that folks don't have to worry about this and you can just pull that one.
Thanks.
Signature · 1 line
tejun
Tejun Heo
maintainerHello,
Quoted 7 lines · Tejun Heo
Quoted 6 lines · Peter Zijlstra
Quoted 4 lines · Stephen Rothwell
Hi all,
After merging the cgroup tree, today's linux-next build (
x86_64allmodconfig) failed like this:
Quoted 6 lines
Quoted 2 lines
Hmm,. TJ should I base sched/psi on top of drivers-core-next and your cgroup tree?
Yeah, this is kinda nasty. Lemme just pull drivers-core-next into cgorup/for-6.1 so that folks don't have to worry about this and you can just pull that one.
I initially thought that driver-core-next was conflicting with cgroup/for-6.1 but this is simpler. It's a straight forward conflict between the PSI patchset in the tip tree and changes in cgroup/for-6.1 which are cleaning up some cftype handling, and the patch that Stephen applied is correct. So, we can do one of the following two:
1. Leave it as-is. Stephen's patch is correct and we can just let Linus know how to resolve it on the pull requests.
2. Pull cgroup/for-6.1 into the tip tree and preemptively resolve the conflict there.
I'm leaning towards #1 but #2 is fine too. Peter, what do you wanna do?
Thanks.
Signature · 1 line
tejun
Quoted 4 lines · Tejun Heo
1. Leave it as-is. Stephen's patch is correct and we can just let Linus know how to resolve it on the pull requests.
I'm leaning towards #1 but #2 is fine too. Peter, what do you wanna do?
Works for me; I'll make a note for the pull req.
Hi all,
Quoted 52 lines · On Mon, 12 Sep 2022 16:18:12 +1000 Stephen Rothwell <[email protected]>…
After merging the cgroup tree, today's linux-next build (
x86_64allmodconfig) failed like this:
kernel/cgroup/cgroup.c:5275:26: error: 'CFTYPE_PRESSURE' undeclared here (not in a function)
5275 | .flags =CFTYPE_PRESSURE,| ^~~~~~~~~~~~~~~Caused by commit
8a693f7766f9("cgroup: RemoveCFTYPE_PRESSURE")inteacting with commits
52b1364ba0b1("sched/psi: AddPSI_IRQto track IRQ/SOFTIRQ pressure")34f26a15611a("sched/psi: Per-cgroup PSI accounting disable/re-enable interface")from the tip tree.
I have applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Mon, 12 Sep 2022 16:15:33 +1000
Subject: [PATCH] sched/psi: fix up for "cgroup: RemoveCFTYPE_PRESSURE"Signed-off-by Stephen Rothwell <[email protected]>--- kernel/cgroup/cgroup.c | 2 -- 1 file changed, 2 deletions(-)kernel/cgroup/cgroup.c +0
-2@@ -5272,7 +5272,6 @@ static struct cftype cgroup_psi_files[] = {#ifdef CONFIG_IRQ_TIME_ACCOUNTING { .name = "irq.pressure", - .flags = CFTYPE_PRESSURE, .file_offset = offsetof(struct cgroup, psi_files[PSI_IRQ]), .seq_show = cgroup_irq_pressure_show, .write = cgroup_irq_pressure_write,@@ -5282,7 +5281,6 @@ static struct cftype cgroup_psi_files[] = {#endif { .name = "cgroup.pressure", - .flags = CFTYPE_PRESSURE, .seq_show = cgroup_pressure_show, .write = cgroup_pressure_write, },Signature · 1 line
2.35.1
This is now a conflict between the tip tree and Linus' tree.
Signature · 2 lines
Cheers, Stephen Rothwell
Tejun Heo
maintainerQuoted 1 line · Stephen Rothwell
This is now a conflict between the tip tree and Linus' tree.
The conflict and resolution were noted in the pull request. This should be fine.
Thanks.
Signature · 1 line
tejun