linux-next: build failure after merge of the tip tree
Subsystems (2)
Hi all,
After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from include/asm-generic/percpu.h:7,
from arch/x86/include/asm/percpu.h:597,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:7,
from kernel/events/core.c:11:kernel/events/core.c: In function 'this_cpc':include/linux/percpu-defs.h:220:45: error: initialization from pointer to non-enclosed address space
220 | const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
| ^include/linux/percpu-defs.h:251:9: note: in expansion of macro '__verify_pcpu_ptr'
251 | __verify_pcpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~~
kernel/events/core.c:1222:17: note: in expansion of macro 'this_cpu_ptr'
1222 | return *this_cpu_ptr(pmu->cpu_pmu_context);
| ^~~~~~~~~~~~(and many more similar)
Presumably caused by commit
f67d1ffd841f ("perf/core: Detach 'struct perf_cpu_pmu_context' and 'struct pmu' lifetimes")
I have used the tip tree from next-20250303 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 24 lines · On Tue, 4 Mar 2025 16:25:31 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
include/asm-generic/percpu.h:7,from arch/x86/include/asm/percpu.h:597, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/wait.h:9, from include/linux/wait_bit.h:8, from include/linux/fs.h:7, from kernel/events/core.c:11:
kernel/events/core.c: In function 'this_cpc':include/linux/percpu-defs.h:220:45: error: initialization from pointer to non-enclosed address space
220 | const void__percpu*__vpp_verify= (typeof((ptr) + 0))NULL; \
| ^include/linux/percpu-defs.h:251:9: note: in expansion of macro '__verify_pcpu_ptr'251 | __verify_pcpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~~ kernel/events/core.c:1222:17: note: in expansion of macro 'this_cpu_ptr' 1222 | return *this_cpu_ptr(pmu->cpu_pmu_context); | ^~~~~~~~~~~~
Quoted 7 lines
(and many more similar)
Presumably caused by commit
f67d1ffd841f("perf/core: Detach 'structperf_cpu_pmu_context' and 'struct pmu' lifetimes")I have used the tip tree from next-20250303 for today.
I am still seeing this build failure.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 28 lines · On Thu, 6 Mar 2025 15:25:16 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 26 lines · On Tue, 4 Mar 2025 16:25:31 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
include/asm-generic/percpu.h:7,from arch/x86/include/asm/percpu.h:597, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/wait.h:9, from include/linux/wait_bit.h:8, from include/linux/fs.h:7, from kernel/events/core.c:11:
kernel/events/core.c: In function 'this_cpc':include/linux/percpu-defs.h:220:45: error: initialization from pointer to non-enclosed address space
220 | const void__percpu*__vpp_verify= (typeof((ptr) + 0))NULL; \
| ^include/linux/percpu-defs.h:251:9: note: in expansion of macro '__verify_pcpu_ptr'251 | __verify_pcpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~~ kernel/events/core.c:1222:17: note: in expansion of macro 'this_cpu_ptr' 1222 | return *this_cpu_ptr(pmu->cpu_pmu_context); | ^~~~~~~~~~~~(and many more similar)
Quoted 7 lines
Quoted 5 lines
Presumably caused by commit
f67d1ffd841f("perf/core: Detach 'structperf_cpu_pmu_context' and 'struct pmu' lifetimes")I have used the tip tree from next-20250303 for today.
I am still seeing this build failure.
Ditto. Anything happening with this?
I am still using the tip tree from next-20250303.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 34 lines · On Tue, 11 Mar 2025 15:24:29 +1100 Stephen Rothwell <[email protected]>…
Quoted 32 lines · On Thu, 6 Mar 2025 15:25:16 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 30 lines · On Tue, 4 Mar 2025 16:25:31 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
include/asm-generic/percpu.h:7,from arch/x86/include/asm/percpu.h:597, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/wait.h:9, from include/linux/wait_bit.h:8, from include/linux/fs.h:7, from kernel/events/core.c:11:
kernel/events/core.c: In function 'this_cpc':include/linux/percpu-defs.h:220:45: error: initialization from pointer to non-enclosed address space
220 | const void__percpu*__vpp_verify= (typeof((ptr) + 0))NULL; \
| ^include/linux/percpu-defs.h:251:9: note: in expansion of macro '__verify_pcpu_ptr'251 | __verify_pcpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~~ kernel/events/core.c:1222:17: note: in expansion of macro 'this_cpu_ptr' 1222 | return *this_cpu_ptr(pmu->cpu_pmu_context); | ^~~~~~~~~~~~(and many more similar)
Presumably caused by commit
f67d1ffd841f("perf/core: Detach 'structperf_cpu_pmu_context' and 'struct pmu' lifetimes")
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
I have used the tip tree from next-20250303 for today.
I am still seeing this build failure.
Ditto. Anything happening with this?
I am still using the tip tree from next-20250303.
So am I missing something here? I am still seeing this build failure.
That commit is now
4eabf533fb18 ("perf/core: Detach 'struct perf_cpu_pmu_context' and 'struct pmu' lifetimes")
Is there something in my toolchain? Or some other difference in our
build environments?
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 45 lines · Stephen Rothwell
Hi all,
Quoted 34 lines · On Tue, 11 Mar 2025 15:24:29 +1100 Stephen Rothwell <[email protected]>…
Quoted 32 lines · On Thu, 6 Mar 2025 15:25:16 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 30 lines · On Tue, 4 Mar 2025 16:25:31 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
include/asm-generic/percpu.h:7,from arch/x86/include/asm/percpu.h:597, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/wait.h:9, from include/linux/wait_bit.h:8, from include/linux/fs.h:7, from kernel/events/core.c:11:
kernel/events/core.c: In function 'this_cpc':include/linux/percpu-defs.h:220:45: error: initialization from pointer to non-enclosed address space
220 | const void__percpu*__vpp_verify= (typeof((ptr) + 0))NULL; \
| ^include/linux/percpu-defs.h:251:9: note: in expansion of macro '__verify_pcpu_ptr'251 | __verify_pcpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~~ kernel/events/core.c:1222:17: note: in expansion of macro 'this_cpu_ptr' 1222 | return *this_cpu_ptr(pmu->cpu_pmu_context); | ^~~~~~~~~~~~(and many more similar)
Presumably caused by commit
f67d1ffd841f("perf/core: Detach 'structperf_cpu_pmu_context' and 'struct pmu' lifetimes")Quoted 7 lines
Quoted 3 lines
Quoted 1 line
I have used the tip tree from next-20250303 for today.
I am still seeing this build failure.
Ditto. Anything happening with this?
I am still using the tip tree from next-20250303.
Quoted 8 lines
So am I missing something here? I am still seeing this build failure.
That commit is now
4eabf533fb18("perf/core: Detach 'structperf_cpu_pmu_context' and 'struct pmu' lifetimes")Is there something in my toolchain? Or some other difference in our
build environments?
FWIW I cannot reproduce with gcc 14 or 9. tip/master builds that file fine for me. Perhaps a merge with some other tree introduces this?
thanks,
Signature · 2 lines
js suse labs
Peter Zijlstra
maintainerQuoted 25 lines · Stephen Rothwell
Hi all,
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
include/asm-generic/percpu.h:7,from arch/x86/include/asm/percpu.h:597, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/wait.h:9, from include/linux/wait_bit.h:8, from include/linux/fs.h:7, from kernel/events/core.c:11:
kernel/events/core.c: In function 'this_cpc':include/linux/percpu-defs.h:220:45: error: initialization from pointer to non-enclosed address space
220 | const void__percpu*__vpp_verify= (typeof((ptr) + 0))NULL; \
| ^include/linux/percpu-defs.h:251:9: note: in expansion of macro '__verify_pcpu_ptr'251 | __verify_pcpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~~ kernel/events/core.c:1222:17: note: in expansion of macro 'this_cpu_ptr' 1222 | return *this_cpu_ptr(pmu->cpu_pmu_context); | ^~~~~~~~~~~~
Quoted 7 lines
(and many more similar)
Presumably caused by commit
f67d1ffd841f("perf/core: Detach 'structperf_cpu_pmu_context' and 'struct pmu' lifetimes")I have used the tip tree from next-20250303 for today.
Right. Sorry for not noticing before, and thanks Jiri for poking me.
So the below resolution make it go for me. The problem appears to be that due to:
bcecd5a529c1 ("percpu: repurpose __percpu tag as a named address space qualifier")
this makes that this_cpu_ptr() wants a '__percpu *', instead we feed it '__percpu**' which confuses things.
What would be the best way around to getting this resolved, should I stick the below in a fixup patch in tip/perf/core, or do we carry this in a merge resolution somewhere?
include/linux/perf_event.h +0 -0
@@@ -343,7 -343,7 +343,7 @@@ struct pmu*/ unsigned int scope; -struct perf_cpu_pmu_context __percpu *cpu_pmu_context; - struct perf_cpu_pmu_context __percpu **cpu_pmu_context; ++ struct perf_cpu_pmu_context * __percpu *cpu_pmu_context;atomic_t exclusive_cnt;/* < 0: cpu; > 0: tsk */ int task_ctx_nr;int hrtimer_interval_ms;
Hi Peter,
Quoted 6 lines · On Mon, 17 Mar 2025 10:38:56 +0100 Peter Zijlstra <[email protected]> wrote:
Right. Sorry for not noticing before, and thanks Jiri for poking me.
So the below resolution make it go for me. The problem appears to be that due to:
Quoted 8 lines
bcecd5a529c1("percpu: repurpose__percputag as a named address space qualifier")this makes that
this_cpu_ptr()wants a '__percpu*', instead we feed it '__percpu**' which confuses things.What would be the best way around to getting this resolved, should I stick the below in a fixup patch in tip/perf/core, or do we carry this in a merge resolution somewhere?
Its a conflict between the mm tree and the tip tree, so I will carry it as a resolution in -next and you all should let Linus know when the pull requests get sent.
I will use your resolution from tomorrow.
Quoted 14 lines
include/linux/perf_event.h +1
-1@@@ -343,7 -343,7 +343,7 @@@ struct pmu*/ unsigned int scope; -struct perf_cpu_pmu_context __percpu *cpu_pmu_context; - struct perf_cpu_pmu_context __percpu **cpu_pmu_context; ++ struct perf_cpu_pmu_context * __percpu *cpu_pmu_context;atomic_t exclusive_cnt;/* < 0: cpu; > 0: tsk */ int task_ctx_nr;int hrtimer_interval_ms;
Signature · 2 lines
Cheers, Stephen Rothwell
Peter Zijlstra
maintainerQuoted 18 lines · Stephen Rothwell
Hi Peter,
Quoted 6 lines · On Mon, 17 Mar 2025 10:38:56 +0100 Peter Zijlstra <[email protected]> wrote:
Right. Sorry for not noticing before, and thanks Jiri for poking me.
So the below resolution make it go for me. The problem appears to be that due to:
Quoted 8 lines
bcecd5a529c1("percpu: repurpose__percputag as a named address space qualifier")this makes that
this_cpu_ptr()wants a '__percpu*', instead we feed it '__percpu**' which confuses things.What would be the best way around to getting this resolved, should I stick the below in a fixup patch in tip/perf/core, or do we carry this in a merge resolution somewhere?
Quoted 5 lines
Its a conflict between the mm tree and the tip tree, so I will carry it as a resolution in -next and you all should let Linus know when the pull requests get sent.
I will use your resolution from tomorrow.
I pushed it out as a fix in tip/perf/core, figured it wouldn't hurt and it wont get lost.
Hi Peter,
Quoted 3 lines · On Mon, 17 Mar 2025 11:57:02 +0100 Peter Zijlstra <[email protected]> wrote:
I pushed it out as a fix in tip/perf/core, figured it wouldn't hurt and it wont get lost.
OK, thanks.
Signature · 2 lines
Cheers, Stephen Rothwell