Skip to contentSkip to conversation

linux-next: build failure after merge of the bpf-next tree

DISCUSSION Mark Brown 3 participants 4 messages May 26 – May 27

Subsystems (4)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the bpf-next tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

/tmp/next/build/kernel/bpf/core.c:3379:13: error: redefinition of 'bpf_arena_handle_page_fault'
3379 | __weak bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write,

      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/next/build/include/linux/bpf.h:9,
                 from /tmp/next/build/include/linux/filter.h:9,
                 from /tmp/next/build/kernel/bpf/core.c:21:

/tmp/next/build/include/linux/bpf_defs.h:12:20: note: previous definition of 'bpf_arena_handle_page_fault' with type 'bool(long unsigned int,
bool, long unsigned int)' {aka '_Bool(long unsigned int, _Bool, long unsigned int)'}
12 | static inline bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write,

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

Caused by commit

dc11a4dba2464 (bpf: Recover arena kernel faults with scratch page)

I have used the version from next-20260525 instead.

#1 lore raw
Quoted 18 lines · Mark Brown

Hi all,

After merging the bpf-next tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

/tmp/next/build/kernel/bpf/core.c:3379:13: error: redefinition of 'bpf_arena_handle_page_fault'
3379 | __weak bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write,

      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/next/build/include/linux/bpf.h:9,
                 from /tmp/next/build/include/linux/filter.h:9,
                 from /tmp/next/build/kernel/bpf/core.c:21:

/tmp/next/build/include/linux/bpf_defs.h:12:20: note: previous definition of 'bpf_arena_handle_page_fault' with type 'bool(long unsigned int,
bool, long unsigned int)' {aka '_Bool(long unsigned int, _Bool, long unsigned int)'}
12 | static inline bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write,

Quoted 5 lines
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

dc11a4dba2464 (bpf: Recover arena kernel faults with scratch page)

Tejun,

thoughts on the best way to fix it ?
Pls send it to bpf-next. I think it's fine for it to be in one tree only.

author maintainer
#2 lore raw
Quoted 2 lines · Alexei Starovoitov

thoughts on the best way to fix it ?
Pls send it to bpf-next. I think it's fine for it to be in one tree only.

That's fine from a -next point of view since bpf gets merged first, you'll also need to ensure that the sched_ext stuff doesn't get sent to Linus until the bpf changes have landed or flag the dependency up to him.

#3 lore raw
Quoted 9 lines · Mark Brown
Quoted 2 lines · Alexei Starovoitov

thoughts on the best way to fix it ?
Pls send it to bpf-next. I think it's fine for it to be in one tree only.

That's fine from a -next point of view since bpf gets merged first, you'll also need to ensure that the sched_ext stuff doesn't get sent to Linus until the bpf changes have landed or flag the dependency up to him.

Just sent the fix patch for bpf-next. And, yeah, flagging the merge order is what I usually do.

Thanks.

Signature · 1 line
tejun