Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4798093ybp; Mon, 14 Oct 2019 10:10:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKzqUHlH748R+tmq4jlemag+7L7QUPMD8gIkwwACzDsWy5CRP9JdDkia0QR1mqQHC2sN4M X-Received: by 2002:a17:906:4ac8:: with SMTP id u8mr30101406ejt.193.1571073016366; Mon, 14 Oct 2019 10:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571073016; cv=none; d=google.com; s=arc-20160816; b=aUr8rHbNSz3YdmDMCcBLcFR++M3KCnMHE8XbVqbQ6rcUKN41DPfvHMXi/XVyy0jrHI So/jo39wsNNRwzpsfoJcr/+2AE/sZ9G1CwIN1TGLJZHL+cCux+YTOBjiZ4do6e9lTHNH EExXR/FNl89bAJUGZt1HwEPGPCL6KpveyuC5GI70O7qiBUkfx5PGN3g8hoCParEDxrMw BGLigF85MmEi9xC97ZVsluTwA5z2RGxusgAFlbukXfoNiKOO+AmT/53NYTPYW9w3Fw8G gnUtjeJWrAMnym6sR1PZC44CErRdYOp193yG3BChyzmU6TTDZlibJJ7jcv5GGgTWgByQ 4MbQ== 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; bh=Q24q6h3mF+AiGLBQTI2A+aNKnDfnyyCDhMwofExQfKI=; b=t68vlD3vHYZn1RFjJD+/peabB9motKyhIFv6ubQvvSJX8f+uGwrFVeUO78PWBBs4Zd WEd3WkfpGnanWOHwgY5VJgjqA07SqLH6Prti2PDZieOIOb9HByUTZa7lAkOVtFwuJwJg aC6DqcBFykw8TRn50YxspYr50dMcHm69bVxGMmH0Mo230JkzXz225phpft7ugcsM6ABh XJ4UEPWIMXriKgejM/EZzdu6pSS6jV2STSEyR6gSYIrkmXDA1HSFe+MgAKuQKPGYR6hG LE2eBHqjDOUTAiP7CsVDZnBWmrqN9nR8jA9VrxAunIeu1pnSHDcsIsvrhQUiNCOWONaB 2MpA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si13829359edc.279.2019.10.14.10.09.52; Mon, 14 Oct 2019 10:10:16 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388209AbfJNQpP (ORCPT + 99 others); Mon, 14 Oct 2019 12:45:15 -0400 Received: from mga07.intel.com ([134.134.136.100]:64923 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387432AbfJNQpP (ORCPT ); Mon, 14 Oct 2019 12:45:15 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 09:45:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,296,1566889200"; d="scan'208";a="220152156" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by fmsmga004.fm.intel.com with ESMTP; 14 Oct 2019 09:45:12 -0700 Date: Mon, 14 Oct 2019 09:45:14 -0700 From: Ira Weiny To: "Aneesh Kumar K.V" Cc: "Kirill A. Shutemov" , John Hubbard , kbuild test robot , kbuild-all@lists.01.org, Andrew Morton , Christoph Hellwig , Keith Busch , LKML , linux-mm@kvack.org, Christoph Hellwig Subject: Re: [PATCH 2/2] mm/gup: fix a misnamed "write" argument: should be "flags" Message-ID: <20191014164513.GA6839@iweiny-DESK2.sc.intel.com> References: <20191013221155.382378-3-jhubbard@nvidia.com> <201910141316.DHpeevy3%lkp@intel.com> <20191014135234.7ak32pfir6du3xae@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 08:14:04PM +0530, Aneesh Kumar K.V wrote: > On 10/14/19 7:22 PM, Kirill A. Shutemov wrote: > > 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") > > > > b798bec4741bdd80224214fdd004c8e52698e42 isn't this the commit that need to > be mentioned in the Fixes: tag? Yes, and while we are at it the type should probably be changed to unsigned int. Ira > > -aneesh