Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3322448ybl; Sun, 1 Sep 2019 10:38:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWwkDSoBMJh0KXvpNGFzhpC9feflvtt74cytJo+VroIudQXFIO0L4CfbuzEQFC42qIqpT8 X-Received: by 2002:aa7:91d3:: with SMTP id z19mr30022154pfa.135.1567359513934; Sun, 01 Sep 2019 10:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567359513; cv=none; d=google.com; s=arc-20160816; b=v36BPgCxIznnwBokCaGqVucq92TqY5FkEuNm9hJQp/hfdPyX2Z83Ikez9gvGUdoLWo ZzA15XARDTrXGazcjayDVKrP8aJjyUziwtf9K7xb5vLw/C6N3hfHwf22mCOyMoiO9wOJ A47fTIxrqQVnbtpaG3xiitBVE1sz81gRrBS0NFxoFZZt8lsNPbWAEh2jq2yaVb5GFbwN OyLLC1GdtNAfmtmtG8X7accjf6tVh0eDhkJHf9G5wGpIChj5eFIdDwAr54hS9ogg4gFU ZhkUPDY/9Q8HghABSObtkC904tAmE4dUTVSaGCpPMKmXtZ0z49zHu4rc31J3hOo2Fzb9 G42A== 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=Ke57GzZYCLOgbAUdAf+tCKrlKxXab4Lu0TGrUur238Y=; b=X+L136fBfoKiblwohCuv2vf+YE4T4KEjgEp4HmIZRvWgMfB+CretHqfI+xsRIqLWxo 38eJHz6cLdOzXUVe+zCbcHuJtMzrQZTzCe0uFc8NwjjGsV9q0e4x8NRrovuBAhoOGOdH TXTIpGa3Ym9vPR01WV2KDog+jqM0HXxUSRUdU4czGC0snubNJsF8lOf4rCM6s/BX+Okq g/LrekhTz2rldfNfsb5kgFKDHK4ya5Q/jWtzgcnGCR065F81kTjVUJOQlgC+AIzwIayH lx6FCfbbuVgB+PnMAyN39kxMzlQ9k6kLq0tdF3edSESDAqcUoKTPJdh/uiORBEoZ0P2t r7cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FobRiCuk; 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 x16si9491931pgi.312.2019.09.01.10.38.17; Sun, 01 Sep 2019 10:38:33 -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=FobRiCuk; 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 S1728943AbfIARbo (ORCPT + 99 others); Sun, 1 Sep 2019 13:31:44 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46111 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728616AbfIARbo (ORCPT ); Sun, 1 Sep 2019 13:31:44 -0400 Received: by mail-lf1-f66.google.com with SMTP id n19so8743856lfe.13 for ; Sun, 01 Sep 2019 10:31:41 -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=Ke57GzZYCLOgbAUdAf+tCKrlKxXab4Lu0TGrUur238Y=; b=FobRiCukALzeWeknK/SRZad8+x9Zz7bQxvJKvet2bAEGH7WO3o2xWUEXCfr8tZfPLe 0j7hGBpecZGlttwiEE3OHRbTDzD8pOmiJRnfzRvwDW8p9kxWx1oQra5v1S9160yc1v9P DOwbtyK8I1dvp6QEp4QXFH7c5Yz/0gdGlsYFU= 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=Ke57GzZYCLOgbAUdAf+tCKrlKxXab4Lu0TGrUur238Y=; b=YPQz/IygNO+KRgH1MYJPPGy/lNJEZaof1qUgqHz0X4PzUMbu5hiyqietcGnqeO4ldv wxO2gIULbGwAVVSdqS6PbA8dbulakLFBdbFQFeyAbIJaGaVihPxIJ91UokZByCwwpDQn GuLC5A72m4a0EQhBVJlkWLNie8G/J5MUDXZ3QF3CqKzJtDPorZcaTTnbKUqtoBdmeKnU nz++kyLtxoUV79/6LnN9yA/Oj8JfpCduLtHa617sz2Er7Ie4XjPfAf0ta1vZPkHdp/MU slsuj58ODZo4PWOLANT8AOlMmpOdmJaBRMdHkhOzw626qguouRU6lAIV+Ow43HoqkPNY Ky3A== X-Gm-Message-State: APjAAAUO3KUWZ+DbGx7RULxrjkRb+su4iL/GB547w2PKmMsdMi1WTmu7 HItQFBDjK2zpG6gqs0PCU3hshYlZA20= X-Received: by 2002:ac2:5394:: with SMTP id g20mr15787298lfh.112.1567359100825; Sun, 01 Sep 2019 10:31:40 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id u8sm2077925lfq.61.2019.09.01.10.31.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Sep 2019 10:31:39 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id c12so8790049lfh.5 for ; Sun, 01 Sep 2019 10:31:39 -0700 (PDT) X-Received: by 2002:a19:f204:: with SMTP id q4mr1238291lfh.29.1567359098952; Sun, 01 Sep 2019 10:31:38 -0700 (PDT) MIME-Version: 1.0 References: <5a3e440f-4ec5-65d7-b2a4-c57fec0df973@infradead.org> In-Reply-To: From: Linus Torvalds Date: Sun, 1 Sep 2019 10:31:22 -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="00000000000054c4cf0591813a94" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000054c4cf0591813a94 Content-Type: text/plain; charset="UTF-8" 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 ... 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. Linus --00000000000054c4cf0591813a94 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_k019380r0 IGFyY2gvbWljcm9ibGF6ZS9pbmNsdWRlL2FzbS91YWNjZXNzLmggfCA0MiArKysrKysrKy0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDkgaW5zZXJ0aW9ucygrKSwg MzMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvYXJjaC9taWNyb2JsYXplL2luY2x1ZGUvYXNt L3VhY2Nlc3MuaCBiL2FyY2gvbWljcm9ibGF6ZS9pbmNsdWRlL2FzbS91YWNjZXNzLmgKaW5kZXgg YmZmMmE3MWM4MjhhLi44OGJkZTA2YTQxYTMgMTAwNjQ0Ci0tLSBhL2FyY2gvbWljcm9ibGF6ZS9p bmNsdWRlL2FzbS91YWNjZXNzLmgKKysrIGIvYXJjaC9taWNyb2JsYXplL2luY2x1ZGUvYXNtL3Vh Y2Nlc3MuaApAQ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