Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4644517ybp; Mon, 14 Oct 2019 07:52:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEwnRuggtV3kIgMPgIBc0TTOm9YWULeM/cZrYFMupI7SFpW1GZB5bJS9oQelN1fv45WF+9 X-Received: by 2002:a17:906:f181:: with SMTP id gs1mr26402037ejb.13.1571064756971; Mon, 14 Oct 2019 07:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571064756; cv=none; d=google.com; s=arc-20160816; b=LBr/290v9WbgKJBz+zqcXu34sDygth9wNQNvFnpOCR7PD56L8bkfXDSh3xt7YjF1ro A7MQ3EWHnRX1bXJFp5uvg1jt/2bJgj6KVLVjaD/AWTFA9wM7bFjnLMF0CYInpVHjvlQJ eahwbqiu8l5NpmLUzNVr8edQZWj7oIDYRIX1NUSDUcMCQ9rtD6CTfWMycZAvjhdsQG9y Wzz1xlZZrDA8ikOrW92jf1cH/NUSQITH7CITWq4wz1F6D3ShazYlBGdMQE7KLqvQah/Z 6+r4l0eRwUWwCTDC38pkjfQR0qaP8MHAsLUqbB0SUI06kROFx8XT0Z+6NS170Ju3IYVA tc8g== 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=Zl9j9N5g2XhcKzAZ6Cx7QAGYoUWVq9aZXTcu8wQiQfw=; b=MxwxIXwOxU64AY3pQN7FqWlHNMlJtyZRbEDy4V/Hpm6FZ/+26pqaN2ADSn3XJxAQMd 69AE/90qhLrQ5aPBM7fWSO8gL5tj/LRU5X2N5hifgUiQ2JxWXe6ZToam0i6Vka/JzdlN lDH9PcbnZhFJMnhfQX/QE5IQy2ZSAMaUKjfmW6xWeIqCYYUEYJw4NaJ6gF9X2MSVI2ZM mWwIMdHVgqwddGz3nhFhCZdEpQVMlSLs7p+rInysPb9500OkJhu52G+VTjw4PGZszbH4 P++Y28r9S+8U9k9B41I4QwwvCW+HXItkRXhi8F7sA2aygZ6Hp61pQYKJyn5niF6XTzUD qpmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=PPtoDEJU; 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 k2si12691853ede.311.2019.10.14.07.52.13; Mon, 14 Oct 2019 07:52:36 -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=PPtoDEJU; 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 S1733027AbfJNOvr (ORCPT + 99 others); Mon, 14 Oct 2019 10:51:47 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34764 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731121AbfJNOvr (ORCPT ); Mon, 14 Oct 2019 10:51:47 -0400 Received: by mail-lj1-f194.google.com with SMTP id j19so16966684lja.1 for ; Mon, 14 Oct 2019 07:51:45 -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=Zl9j9N5g2XhcKzAZ6Cx7QAGYoUWVq9aZXTcu8wQiQfw=; b=PPtoDEJU0h4JnPMhPXkDkcYF4Pe2xnFKY77WyJmgnbwx/opDkf3EnHO/aSkQgb+Rr4 U98tG+8u0Tj7hHDt1NIwZ6GLdUyKZfOTmkitZvXvH4Bt1ylpX7zMVXakUeWYk41ID0EK zq9ybPcOqkAU/37IUUlahKQeGr4nLG6cVkfBDWAzfGnw8ZaI4g16fIhpigjPNxQ09z47 5BCHqsNVgO5pf9c+DUShNywqEcUVgeIdyQHSXWM6Qjw8dbzv5jfw6ZyO/DnJLDbJsPbs Qmy1Ki/10/Rh/k2iimoH7RrpMju9RUlqC91/56ewTgfbkpPd4zCYxzJ8+Ijcntg6Ysqr 0vFg== 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=Zl9j9N5g2XhcKzAZ6Cx7QAGYoUWVq9aZXTcu8wQiQfw=; b=g6Qqsf0OTDOeihmKN3L1NG61EnACeFnl3nGx9BjuIglFmUWxpWbLUObMxi5a0hsdfa xIv0Tp9UYBk34I/YhhF6tKGGHTT4cjeVs79X3cCRwC6L8CjUBROwJqJLzvu/U6x2wTeG qPkjfv13Ny7Azvsz1GJ0Ww11Peur1tG+oe/Wd2GZHhHcq8c56UQe84ELF7azZGvZ4PU9 Og1tBbc+mImRPw8K6sV7dKryTZxShvG09FFUP7tEl3+bK9V1/QTAnG3S52p6ISZH/jDy j/vlHC9zapWFm8JxqpRUUXra8k1yxDFgDGOV7cLhRqur4s5pgUSY5nVg5G9z4DZv326B WWkg== X-Gm-Message-State: APjAAAVwycka6myveXd3Bry+erxUrCLSYmarsrHbtmZ4GPnfJb6fY391 DQ0TsuPS/Y8S/4FJr3JzOhOIIQ== X-Received: by 2002:a2e:a0ca:: with SMTP id f10mr18271484ljm.83.1571064705032; Mon, 14 Oct 2019 07:51:45 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id x2sm4397741ljj.94.2019.10.14.07.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 07:51:44 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 70CAA101145; Mon, 14 Oct 2019 17:51:43 +0300 (+03) Date: Mon, 14 Oct 2019 17:51:43 +0300 From: "Kirill A. Shutemov" To: "Aneesh Kumar K.V" Cc: John Hubbard , kbuild test robot , kbuild-all@lists.01.org, Andrew Morton , Christoph Hellwig , 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: <20191014145143.hyi6fj6s6uquohzj@box> 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: NeoMutt/20180716 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? Ah. Okay, I see you point. Yes, this is the sourch of the breakage. -- Kirill A. Shutemov