Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4576364ybp; Mon, 14 Oct 2019 06:53:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSa4zxwdtx3A3C0rL1ZFSP+OGCPi7JqYKz0h3wJJJ5229fJjeBw78n0aavumipYESWS6RS X-Received: by 2002:a17:906:1d02:: with SMTP id n2mr28384118ejh.303.1571061206636; Mon, 14 Oct 2019 06:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571061206; cv=none; d=google.com; s=arc-20160816; b=T2lSVmG+UgxDC+F3g0gA7sHXHZoCwda8NgZWjFmX3VPNywRUPAmRuHOplgB+MCDEkp 01heS+Q/nyuepDahFvIVbiPaBhuVglewD+4i0ilvEV145Nu5B4GWSPsqieRuxf9UDW6H fuqkDjRoWccrd2CTyxhND/AOj7gDIpmiAiPVTvaXYMc4EkXnqpsU5X0yF/8ggu6imilB lJv0+gsk9pAfIbYidR/2YlBnRLUUw6mTSDKgYXuiU2Rl9p1xQoYKT+tTJaHXzXUCd1iO NwEXIQMvdXCC12s251javrKxegAT02M18v20XQm7cWW9ZTffmR6QM5n1OuQd1yijBsrr ErIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f9b7DTnSxRvT+GcqfkPH2X9rmIgB3LKKUuDW26EPx+E=; b=KwTAdb4RnJv+mMgUMEx8kLFD/BTTaG/3vyitVC/yobPjvrvFZ9KxEIrhNPckAYS0sr hnihTfQoeG3XUS/Kzsy48gR7XPNdMGH6sbUp9MY457Pua/2YHuT3TQIwMZKYpA2RehKH TsqrwiEvEjEHqqaJDE3bpYOR4ARLQe1Urskj8nUQqdxFdnNliBry2U0ftYhgDm0ywbCg 8qXfewDqRJ/3pBHXRPaouRdEUYHXVpP9hvChg9mOuz0gR60PTjST7lvbJdFehUTVDgyN TG50kFE53vptU1zjRVVebUKlxYVW8fDFUfh9uEcHThvrl4TB985HPKG0XkSA34lhZ8Jd Yofw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=IlQOIU9V; 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 l9si10178333ejx.426.2019.10.14.06.53.03; Mon, 14 Oct 2019 06:53:26 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=IlQOIU9V; 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 S1732275AbfJNNwi (ORCPT + 99 others); Mon, 14 Oct 2019 09:52:38 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39085 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732082AbfJNNwi (ORCPT ); Mon, 14 Oct 2019 09:52:38 -0400 Received: by mail-lj1-f195.google.com with SMTP id y3so16732301ljj.6 for ; Mon, 14 Oct 2019 06:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=f9b7DTnSxRvT+GcqfkPH2X9rmIgB3LKKUuDW26EPx+E=; b=IlQOIU9V0/k9WH69ItvmTZuFdztr2V9aDLo0xk1sMct4aWBwk8sRXReuLZ2LYneqgH Vptsx/PLN+PjP0htJydrqQuT1nUfCgV0tc5ViZ9q28KhfbJNEMFK83EAD/w0EGI4v10D edZ/JcU4ONw4IL6cytAtVgvQBUtUUYVZ0uSxldRnlxPF9NoZvpKJryi49k92yzUw/wWA ESv6noE0SESJPPPtgZvufaasJVDi6YWW7H0b6QsgMidIuYuBIPNP3hzS1bQUp6Nakfu4 63Mh2/JSpTR9ZwkbzJtIP0hXSu+yA5U9vHNnAYjoDrJaqoe2KwcHl18SDmz5mJi3iRu5 Wzfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=f9b7DTnSxRvT+GcqfkPH2X9rmIgB3LKKUuDW26EPx+E=; b=s9NVSEazeZnu25i/q4UqCOZqJA01E+VBjI5HxeSuaG/YDtgbYIzEb7XXty7jWPTYau f3vDsRQf+BWEUZKbOxrtBzxfuZIUWwkrCSBCi50JGYYZFLg5IgawA31ON3tCKAbqaq5A AaqNO82KNnQGxjuEdyREWqq3Y/W9qINlOOcKPxil3YcFHjca8+EXiT6PADLJK9kpBzXX ITXB7Z7bUmMcMtkf2483/4bFUQKMGpbMdb8oK3VC7vkYHYcDV1ko+MGnklnXIRyHOqDj UI0Cr8MFiMuXwygx27ECJGQLWL84sESPvCp1T9bV1Kh4d2Pip7fagXwuKEpanaD1O81A gpmQ== X-Gm-Message-State: APjAAAVfSDaLd8NseOza8XPRzN1r1uoKoIqc5aGH/Q+hLdEAeR98h7pQ OUVCHsFiKUI1pywn8hhYsOD6FQ== X-Received: by 2002:a2e:9112:: with SMTP id m18mr5930341ljg.75.1571061155925; Mon, 14 Oct 2019 06:52:35 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id 207sm4961519lfn.0.2019.10.14.06.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 06:52:35 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id A16C3101288; Mon, 14 Oct 2019 16:52:34 +0300 (+03) Date: Mon, 14 Oct 2019 16:52:34 +0300 From: "Kirill A. Shutemov" To: John Hubbard Cc: kbuild test robot , kbuild-all@lists.01.org, Andrew Morton , Christoph Hellwig , "Aneesh Kumar K . V" , Keith Busch , Ira Weiny , LKML , linux-mm@kvack.org, Christoph Hellwig Subject: Re: [PATCH 2/2] mm/gup: fix a misnamed "write" argument: should be "flags" Message-ID: <20191014135234.7ak32pfir6du3xae@box> References: <20191013221155.382378-3-jhubbard@nvidia.com> <201910141316.DHpeevy3%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 13, 2019 at 11:43:10PM -0700, John Hubbard wrote: > On 10/13/19 11:12 PM, kbuild test robot wrote: > > Hi John, > > > > Thank you for the patch! Yet something to improve: > > > > [auto build test ERROR on linus/master] > > [cannot apply to v5.4-rc3 next-20191011] > > [if your patch is applied to the wrong git tree, please drop us a note to help > > improve the system. BTW, we also suggest to use '--base' option to specify the > > base tree in git format-patch, please see https://stackoverflow.com/a/37406982] > > > > url: https://github.com/0day-ci/linux/commits/John-Hubbard/gup-c-gup_benchmark-c-trivial-fixes-before-the-storm/20191014-114158 > > config: powerpc-defconfig (attached as .config) > > compiler: powerpc64-linux-gcc (GCC) 7.4.0 > > reproduce: > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # save the attached .config to linux build tree > > GCC_VERSION=7.4.0 make.cross ARCH=powerpc > > > > If you fix the issue, kindly add following tag > > Reported-by: kbuild test robot > > > > All errors (new ones prefixed by >>): > > > > mm/gup.c: In function 'gup_hugepte': > > > > mm/gup.c:1990:33: error: 'write' undeclared (first use in this function); did you mean 'writeq'? > > if (!pte_access_permitted(pte, write)) > > ^~~~~ > > writeq > > mm/gup.c:1990:33: note: each undeclared identifier is reported only once for each function it appears in > > > > OK, so this shows that my cross-compiler test scripts are faulty lately, > sorry I missed this. > > But more importantly, the above missed case is an example of when "write" really > means "write", as opposed to meaning flags. > > Please put this patch on hold or drop it, until we hear from the authors as to how > they would like to resolve this. I suspect it will end up as something like: > > bool write = (flags & FOLL_WRITE); > > ...perhaps? Just use if (!pte_access_permitted(pte, flags & FOLL_WRITE)) as we have in gup_pte_range(). And add: Fixes: cbd34da7dc9a ("mm: move the powerpc hugepd code to mm/gup.c") -- Kirill A. Shutemov