Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 30, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the origin tree, today's linux-next build (sparc defconfig) failed like this:

<stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] /home/sfr/next/next/arch/sparc/mm/fault_32.c: In function 'force_user_fault':
/home/sfr/next/next/arch/sparc/mm/fault_32.c:315:49: error: 'regs' undeclared (first use in this function)
315 | vma = lock_mm_and_find_vma(mm, address, regs);
| ^~~~

Caused by commit

a050ba1e7422 ("mm/fault: convert remaining simple cases to lock_mm_and_find_vma()")

I have just left this broken for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 7 lines · Stephen Rothwell

After merging the origin tree, today's linux-next build (sparc defconfig) failed like this:

/home/sfr/next/next/arch/sparc/mm/fault_32.c: In function 'force_user_fault':
/home/sfr/next/next/arch/sparc/mm/fault_32.c:315:49: error: 'regs' undeclared (first use in this function)
315 | vma = lock_mm_and_find_vma(mm, address, regs);

Duh. Yeah, the register window faults don't pass the user register state pointer around, and as noted in commit a050ba1e7422 those left-over conversions were mostly done blind.

The fix is trivial - just pass in NULL for the regs pointer. It's not required.

Said fix pushed out. Thanks,

Linus