Re: [PATCH] avr32: fix 'undefined reference to `___copy_from_user'

From: Hans-Christian Noren Egtvedt
Date: Sun Sep 18 2016 - 06:25:33 EST


Around Sat 17 Sep 2016 13:09:17 -0700 or thereabout, Guenter Roeck wrote:
> On 09/17/2016 09:52 AM, Håvard Skinnemoen wrote:
>>On Sat, Sep 17, 2016 at 7:56 AM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>>>avr32 builds fail with:
>>>
>>>arch/avr32/kernel/built-in.o: In function `arch_ptrace':
>>>(.text+0x650): undefined reference to `___copy_from_user'
>>>arch/avr32/kernel/built-in.o:(___ksymtab+___copy_from_user+0x0): undefined
>>>reference to `___copy_from_user'
>>>kernel/built-in.o: In function `proc_doulongvec_ms_jiffies_minmax':
>>>(.text+0x5dd8): undefined reference to `___copy_from_user'
>>>kernel/built-in.o: In function `proc_dointvec_minmax_sysadmin':
>>>sysctl.c:(.text+0x6174): undefined reference to `___copy_from_user'
>>>kernel/built-in.o: In function `ptrace_has_cap':
>>>ptrace.c:(.text+0x69c0): undefined reference to `___copy_from_user'
>>>kernel/built-in.o:ptrace.c:(.text+0x6b90): more undefined references to
>>>`___copy_from_user' follow
>>>
>>>Fixes: 8630c32275ba ("avr32: fix copy_from_user()")
>>>Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
>>>Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
>>
>>Right, gmail loves HTML. Let me try this again...
>>
>>Acked-by: Havard Skinnemoen <hskinnemoen@xxxxxxxxx>

Acked-by: Hans-Christian Noren Egtvedt <egtvedt@xxxxxxxxxxxx>

>>Thanks!
>>
> You are welcome ... I'll wait until tomorrow to see if Al wants to send this
> patch and the patch for the openrisc failure to Linus; if I don't hear back,
> I'll do it myself.

Thanks, I have no other fixes for AVR32. But let me know if you want me to
push it through linux-avr32.

Why did not Al add Håvard/me to CC in the first place? That way we might have
avoided this build break in the first place?

--
Best regards,
Hans-Christian Noren Egtvedt