[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6184ffdd-30bf-668a-cdee-88cc8eb2ead7@infradead.org>
Date: Sun, 1 Sep 2019 12:10:11 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Al Viro <viro@...iv.linux.org.uk>,
"Steven J. Magnani" <steve@...idescorp.com>,
Michal Simek <monstr@...str.eu>,
Jason Gunthorpe <jgg@...lanox.com>,
Leon Romanovsky <leonro@...lanox.com>,
Doug Ledford <dledford@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v3] arch/microblaze: add support for get_user() of size 8
bytes
On 9/1/19 10:31 AM, Linus Torvalds wrote:
> On Sun, Sep 1, 2019 at 10:07 AM Linus Torvalds
> <torvalds@...ux-foundation.org> 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:
CC block/scsi_ioctl.o
In file included from ../include/linux/uaccess.h:11,
from ../include/linux/highmem.h:9,
from ../include/linux/pagemap.h:11,
from ../include/linux/blkdev.h:16,
from ../block/scsi_ioctl.c:9:
../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))
^~~~~~~~
--
~Randy
Powered by blists - more mailing lists