Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3399835ybl; Sun, 1 Sep 2019 12:14:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRbydGHVCCjZOUuir1W80jnJhbkj9GaGnxaPoV/R7hCYis3fleLrzGja/gb0GMhoZctiYJ X-Received: by 2002:a17:90a:ac0a:: with SMTP id o10mr9648434pjq.143.1567365269696; Sun, 01 Sep 2019 12:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567365269; cv=none; d=google.com; s=arc-20160816; b=QX/aUr1DOxjDpv8Y1xOZP4euo3MxJHrW2ZRuPORJhjVsfBxIxWsAxIg0IT/suhU1fz /6SZZ/d7ZjPkjtC31Iuxg3OM0ge4RyhHaimnGaFnUDwGSHtcWrE1ssp0BTLuGLgONeKP aodRVq+zdxdB+dML7BP2ol9l6vtqzlh2CQdWkW4Vhlg/YlfzYQTK+aKowhy+fmYfocR2 fqjgbGwY8Z8kj8IS52+aiVkrZAy9qTedrffaBYv3t583Zy8rc22vPnmMh2sbVw2muj2q AMxrjWIqZ2WSag5vRKy2vYiKOVFWiCeEthjOLKNd/tAnKsvRyDeDnci/YMCAe/Q9OiTl F+aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=udqiYKR1m77/U3JtKXAs1BCQma4/l5S0DGLhPu8CZzQ=; b=kBiJrr+nxBue/Bga4Ft/d3GD4Omid/AQqNxpwDV40rFT9LdAo/3fG5ik1vfLTrGHA3 TPulcVYy2hE/4+NvGZ/zQAgPeBLc2u5G+sKqXv4t81htlBRDiZTHlatjpN2b2uQCiHWV 95ywEoDKcPeDFDyqlfDjd8pByovnVfwjcw5IjEbGSPITPGjgY+Rhy+dOeErxAq344ZtO hIyxh5y6R9zDoYmFeSwz2N2AZSWCVM4tWaV8vqy3LDju0f5C511re9lJvA8CcWMT/AoL BL2n5iwd5ezaV5ow/gghCQEVQrBL6j/w1P51FA27NDm/Cuk8Q7wJAUsM8TqGu3XhVCne Fsuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fuiHZduC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j191si9669546pgd.88.2019.09.01.12.13.41; Sun, 01 Sep 2019 12:14:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fuiHZduC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729167AbfIATKU (ORCPT + 99 others); Sun, 1 Sep 2019 15:10:20 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33416 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728830AbfIATKT (ORCPT ); Sun, 1 Sep 2019 15:10:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=udqiYKR1m77/U3JtKXAs1BCQma4/l5S0DGLhPu8CZzQ=; b=fuiHZduCC5LYy0nG7YVSBDcaH oYeV5AjzSbMo9zQUfXqO+DaNfJI3gTw4u95yiXfcBxA2hEAx7TyxKd1DOKylqIl5yqGyvX1/skH7R geTL5KhiNwhfaeezKkFk8TGoa+abJtrbBTQlWyyMly8FiB+NbJgerFk1KqPhHWKDvWEn1uICoZEKT CTcKa1NNTTl/kiLv0ti/S3JGaQxOrz28KoFkZYSQV4VJ4SY7LxzZIsCFY9PGiqAd5oxwQ66DRdGDf MQaK1ItTUMepKkGhFlDLA9jal6QWA6Vxikj6F7cKDprHg57tqpfrgv+ubmNjmRr1vFWaNIVXuyGd7 RME+i26xQ==; Received: from [2601:1c0:6200:6e8::4f71] by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i4VEr-0000lH-HV; Sun, 01 Sep 2019 19:10:13 +0000 Subject: Re: [PATCH v3] arch/microblaze: add support for get_user() of size 8 bytes To: Linus Torvalds Cc: LKML , Al Viro , "Steven J. Magnani" , Michal Simek , Jason Gunthorpe , Leon Romanovsky , Doug Ledford , Andrew Morton References: <5a3e440f-4ec5-65d7-b2a4-c57fec0df973@infradead.org> From: Randy Dunlap Message-ID: <6184ffdd-30bf-668a-cdee-88cc8eb2ead7@infradead.org> Date: Sun, 1 Sep 2019 12:10:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/19 10:31 AM, Linus Torvalds wrote: > On Sun, Sep 1, 2019 at 10:07 AM Linus Torvalds > 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