Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp170613ybe; Sun, 1 Sep 2019 22:54:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOHgmnPwCD+JPd3tj/AkAfdHOqXjaWMFmDyUJNPU8vC4JQpUPUdZ8n7bS4A/AtUWDR7RBA X-Received: by 2002:a65:640d:: with SMTP id a13mr23512420pgv.256.1567403642801; Sun, 01 Sep 2019 22:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567403642; cv=none; d=google.com; s=arc-20160816; b=0Gim1vpTcIAJ6kbpIWNN22gcXFeRR3AKsBvkKRhSE91SpwDJCI1HaDpAl9uNMb1EPU VZ2J/LsF1AuhlsgjsqczLaewfAgxplV1dsuxHIzi3AOhmVTJELejM4UDiM9RpsBNPqUd 3IQ3hxpF2iQjuAsdvk0j4Z5DRGtmgab3SvYfy+UZEf88feLcJrLke7ItF9rWFN/W1m/o ebjfu7Da3qttosiIszdF314SzWo2NTS8Mjt2vEQ01D5ymIqyqLzCg98rXGiNrm1XTFTb 44xCt6jFPqlegWcJWzHFOU+q6i2+3v1PtYcVY+ZTffVFBJ142ZAwOde5VmbDompK64nE 0mHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gCcwVdx3CIrQ2iBXoqgR/Xj++7ikjChlwHWjCD8Ry5Q=; b=wU5W0737mJRPLNXP3wdm2sQ29s/3GdjFKCniqLNALG6gQESeBWUzEnE6ruvfaAD4M7 VVvar0lNlTOcp67tzK8pu07xEg9ppAA71yMX3aDLQCDrnSJzyfXrsI1TslO1PBzV8+Aq ZMbV3H7fdrB+aWUO9FryRH2tVt2+xg3zYcAna3pCEcw2rWYu9AmCi0LDNV3ozimK6w+f uJlpkNIKCiS0i8j35NaZScsjTugYgLfEaoSakveaKjkwpaTaVKXQu2gKK71wvtGw60wG 5ZeyVCV/I+BYLHjVWh/V2aEUZIjFBpqcdnn8njdRrSypv1XjJlApHoOhdN7JWnU1b01s 7AEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FGPvKanz; 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 c17si9257432pfn.100.2019.09.01.22.53.47; Sun, 01 Sep 2019 22:54:02 -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=pass header.i=@linux-foundation.org header.s=google header.b=FGPvKanz; 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 S1729458AbfIBE63 (ORCPT + 99 others); Mon, 2 Sep 2019 00:58:29 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40617 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbfIBE63 (ORCPT ); Mon, 2 Sep 2019 00:58:29 -0400 Received: by mail-lj1-f193.google.com with SMTP id 7so2060273ljw.7 for ; Sun, 01 Sep 2019 21:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gCcwVdx3CIrQ2iBXoqgR/Xj++7ikjChlwHWjCD8Ry5Q=; b=FGPvKanz4G3D1M0PUKtnrGALseLuiKp67NFFVO4lbN8C74KTOOkFim/hSQB3OiW40G Qmd3PiTbZdpClx9ghot4nEHjjdDZM00rPNvq/EeXydG9dS3boY6GUnGND54PbW1z1zAN m6u0xLOd375D/M8Ef0DRhnoGnd8NSzcr8Ahbs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gCcwVdx3CIrQ2iBXoqgR/Xj++7ikjChlwHWjCD8Ry5Q=; b=Ns7xU0jD2Mfzed+o3GvJ+yjI+FmzmFuCgNPO0LTRMKQgHv5JOPzMfRpEuZR45jrsw0 bJWfp7oAJeSJzXn29m8asT0Yo76JdaUm09FRGPUCe8e2o6W3DPuS3+qcrLc8FuTE9wCM NoBASb/+gUrQBHX/3Zv5vyzqt4A+04vW/ZZAncH8xwjV9QOXofyjSYzjIjXK09D6pwy1 CDgZ+8u5cWZ482IZXsWY+PVB7NXcfoegb8IYXJgpVJ1bvEPttFAZodwAPUpknjsRtX+f 4qWEqrkBhYgODLykxoCpD4mUjOXQrBet3HdDGzH55pLwRberuLbNkcdIgVvpJMFQ33R4 b40A== X-Gm-Message-State: APjAAAW43o/DkRuRraOn47RGL2EdKGa4Tc7BUDUsdDfkyT40V/Gx79zc j5Raloa6m7/wGvUSh1s97VbFw6tIPAw= X-Received: by 2002:a2e:7013:: with SMTP id l19mr15190133ljc.141.1567400305131; Sun, 01 Sep 2019 21:58:25 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id 20sm53044ljc.40.2019.09.01.21.58.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Sep 2019 21:58:24 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id m24so11581727ljg.8 for ; Sun, 01 Sep 2019 21:58:23 -0700 (PDT) X-Received: by 2002:a2e:3c14:: with SMTP id j20mr2066396lja.84.1567400303649; Sun, 01 Sep 2019 21:58:23 -0700 (PDT) MIME-Version: 1.0 References: <5a3e440f-4ec5-65d7-b2a4-c57fec0df973@infradead.org> <6184ffdd-30bf-668a-cdee-88cc8eb2ead7@infradead.org> <98c83922-6ab1-98ca-7682-7796ae1facf4@infradead.org> In-Reply-To: <98c83922-6ab1-98ca-7682-7796ae1facf4@infradead.org> From: Linus Torvalds Date: Sun, 1 Sep 2019 21:58:07 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] arch/microblaze: add support for get_user() of size 8 bytes To: Randy Dunlap Cc: LKML , Al Viro , "Steven J. Magnani" , Michal Simek , Jason Gunthorpe , Leon Romanovsky , Doug Ledford , Andrew Morton Content-Type: multipart/mixed; boundary="000000000000520bfd05918ad220" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000520bfd05918ad220 Content-Type: text/plain; charset="UTF-8" On Sun, Sep 1, 2019 at 7:10 PM Randy Dunlap wrote: > > I guess we need a way to coerce that to call get_user_1(), > such as a typecast. This _seems_ to work (i.e., call get_user_1()): No, I oversimplified. Try this slightly modified patch instead. Linus --000000000000520bfd05918ad220 Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k01xns400 IGFyY2gvbWljcm9ibGF6ZS9pbmNsdWRlL2FzbS91YWNjZXNzLmggfCA0MiArKysrKysrKy0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDkgaW5zZXJ0aW9ucygrKSwg MzMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvYXJjaC9taWNyb2JsYXplL2luY2x1ZGUvYXNt L3VhY2Nlc3MuaCBiL2FyY2gvbWljcm9ibGF6ZS9pbmNsdWRlL2FzbS91YWNjZXNzLmgKaW5kZXgg YmZmMmE3MWM4MjhhLi5hMWYyMDZiOTA3NTMgMTAwNjQ0Ci0tLSBhL2FyY2gvbWljcm9ibG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