Re: [PATCH v3] arch/microblaze: add support for get_user() of size 8 bytes
From: Randy Dunlap
Date: Sun Sep 01 2019 - 15:10:44 EST
On 9/1/19 10:31 AM, Linus Torvalds wrote:
> On Sun, Sep 1, 2019 at 10:07 AM Linus Torvalds
> <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>> I guess I'll apply it. I'm not sure why you _care_ about microblaze, but ...
It was just a response to the 0day build bot reporting build errors.
> Ugh. As I was going to apply it, my code cleanliness conscience struck.
> I can't deal with that unnecessary duplication of code. Does something
> like the attached patch work instead?
> Totally untested, but looks much cleaner.
Hm, I'm getting one (confusing) build error, in block/scsi_ioctl.c:
In file included from ../include/linux/uaccess.h:11,
../block/scsi_ioctl.c: In function 'sg_scsi_ioctl':
../arch/microblaze/include/asm/uaccess.h:167:25: error: invalid initializer
typeof(ptr) __gu_ptr = (ptr); \
../block/scsi_ioctl.c:426:6: note: in expansion of macro 'get_user'
if (get_user(opcode, sic->data))