Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 1 participant 1 message Jul 27, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

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

arch/sparc/kernel/ptrace_32.c: In function 'setregs_set':
arch/sparc/kernel/ptrace_32.c:271:2: error: 'ret' undeclared (first use in this function); did you mean 'net'?
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
^~~
net

Caused by commit

cf921bf15c62 ("sparc32: get rid of odd callers of copy_regset_from_user()")

I added this patch for today.

From: Stephen Rothwell <[email protected]>
Date: Mon, 27 Jul 2020 21:59:23 +1000
Subject: [PATCH] sparc32: declare ret

---
 arch/sparc/kernel/ptrace_32.c | 1 +
 1 file changed, 1 insertion(+)
arch/sparc/kernel/ptrace_32.c +1 -0
index caeb99cbc1fa..f2c581d36d6c 100644
@@ -264,6 +264,7 @@ static int setregs_set(struct task_struct *target,
 {
 	struct pt_regs *regs = target->thread.kregs;
 	u32 v[4];
+	int ret;
 
 	if (target == current)
 		flush_user_windows();
Signature · 5 lines
2.27.0

-- 
Cheers,
Stephen Rothwell