Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp780285imb; Fri, 1 Mar 2019 13:52:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwD3elSI9/8g0X8Br68KjxTyPUFVosH9dM9M3SLA7sQX/iJzGZrvJFuqWPHYWRvG74K1nKA X-Received: by 2002:a65:5cc7:: with SMTP id b7mr7053641pgt.396.1551477135692; Fri, 01 Mar 2019 13:52:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551477135; cv=none; d=google.com; s=arc-20160816; b=0FBvlID8CwNbL9O6SaIMSt6azZEFMMRXBHOPNCfwgzUDjAOpg3f17HZPs4Oh9bOyb0 hAjFBb4FLmjzWNFum17vMsUY+raNyt3E8M3W2UTEe2zaC/rKtzDZYkpoOvaaTKZqEa/i 3l0X9yP086+jJU442FCc0qs1pvv8/5K5xHnb3jebiZHY4OtSvTsgxwTd3ytmNoX0qkC8 DlakyF7jz7XfDXKx9MVQl1Y1gJunjybbirmewuCIYYmLKSALAOB4aTMrt+/qfJ+WOjiB mHNH7GAHSRzesOSmGpaj0E3URMFxJaN0WB7S/WdNsC7gjN9Dtffqmoq8n1UTgVoNzuk6 m0Iw== 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=Aj5WngXuPv1MUGPfr1Svb4twrAc+hcEOJ/1LSJ7sZ+s=; b=HjVavpzY8OZaAO7cs6mNbmrBVdRsskBzwChpztVoO9YksqDRdWp4UEz4ueLNy+5F3P 567ZS5hAqsqwG688gTwMY48qW9LcB4lZSppbdg4YXjhGsdeZnLAUM3RUpQIzzoDBbo9r kA9iiVJjpOe+O7STfqRorpOpHZtiQ7kPoQVAROMmjoPNFOQtkloKaTowNW6/zCf6lbDm 3brb8BKcA3dujeUwFhRfqq6FPRY1/C2laHGaMGK3sr2MWaT8u1EaAwpK9MxN6wDDPEgb zWIESflszxorkysiQdDei/f6Qrwd81UyA329XP7ZSQ0fwe7ntNWaKeEeuwAHF0LaEob0 EarA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=o9Q41Qcr; 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 x1si21153204plo.58.2019.03.01.13.52.00; Fri, 01 Mar 2019 13:52:15 -0800 (PST) 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=o9Q41Qcr; 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 S1726457AbfCAVve (ORCPT + 99 others); Fri, 1 Mar 2019 16:51:34 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36001 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfCAVve (ORCPT ); Fri, 1 Mar 2019 16:51:34 -0500 Received: by mail-pg1-f194.google.com with SMTP id r124so12054410pgr.3 for ; Fri, 01 Mar 2019 13:51:33 -0800 (PST) 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=Aj5WngXuPv1MUGPfr1Svb4twrAc+hcEOJ/1LSJ7sZ+s=; b=o9Q41QcrAmiy9uClSumYrhP0iIX1ivdxDjZJXBgtpU1Wa/IhUIBZ9Wsy2IXYtbjtAu QLNb5xTEx1bVx/d9Ks70I5wArsnPwmzFhdyccxlH2Y1x39uGrK7TV5Fox3VBW5L/Fuwh MR0PUYQsP0blBMEG27GA5FAk/3CCBX9jBeLPY+2epUC/cO05WTuW/kukGAj1vaOGABGT N6ujdNuuiVeX4WC0qaWFarQKhh6VvcEfelWGu94ARSkaeeXKD01NeDuL3ScC66+ja2aT 578nbXYLdDYnLnrTCgY7vu/bBcboS6uFf1Ux75ILzpvgHlfjLnYKF7s8ZyQw0xL+tAxu Soag== 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=Aj5WngXuPv1MUGPfr1Svb4twrAc+hcEOJ/1LSJ7sZ+s=; b=LiKJuC+FkOKCRcXpEg6BkkUi6kiAz61WO7ExFG/Hb9W0TbMfIr76qjjM2wIjYQU1wE Hfom2PvoSFooIKMYwl01oHM+rtQMI5XbVeyIRkCqJhoEeWHPgOuzTOE3K368m4JbX7yB uQDn/Iqjbj+i5SATlkirb9zlLOyarKOsZ1aulO8uX/ZfC446m+KgInc5OMlkDmrOn9RN XY1aegqKX4IHBv2PFkOm8XyXrgrgwxNJ/9cW8GP1H5zM/4y3JbMd1YXulaVaLkxFLy50 sjuH1mwBqpijTkdreTEOBLE1bTGxhkoLSRFTVoZNUGxcbK9JGeTZ+nvMgzWjUb3ol0XH ZZ6g== X-Gm-Message-State: APjAAAVAj8ic9+mR4gT1acv3hi7SriYnptltkTzicmZmcZIjJGW57gnP Wz9pmUZBFAeVlrEWB1EIHGA7aA== X-Received: by 2002:a62:449b:: with SMTP id m27mr7938829pfi.79.1551477093379; Fri, 01 Mar 2019 13:51:33 -0800 (PST) Received: from kshutemo-mobl1.localdomain ([134.134.139.82]) by smtp.gmail.com with ESMTPSA id e21sm60252029pfh.45.2019.03.01.13.51.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 13:51:32 -0800 (PST) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id 31A663007CA; Sat, 2 Mar 2019 00:51:29 +0300 (+03) Date: Sat, 2 Mar 2019 00:51:29 +0300 From: "Kirill A. Shutemov" To: Steven Price Cc: linux-mm@kvack.org, Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Peter Zijlstra , Thomas Gleixner , Will Deacon , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , "Liang, Kan" , Guo Ren Subject: Re: [PATCH v3 06/34] csky: mm: Add p?d_large() definitions Message-ID: <20190301215128.qqzmyqyzxxatbqgh@kshutemo-mobl1> References: <20190227170608.27963-1-steven.price@arm.com> <20190227170608.27963-7-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190227170608.27963-7-steven.price@arm.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27, 2019 at 05:05:40PM +0000, Steven Price wrote: > walk_page_range() is going to be allowed to walk page tables other than > those of user space. For this it needs to know when it has reached a > 'leaf' entry in the page tables. This information is provided by the > p?d_large() functions/macros. > > For csky, we don't support large pages, so add a stub returning 0. > > CC: Guo Ren > Signed-off-by: Steven Price > --- > arch/csky/include/asm/pgtable.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h > index edfcbb25fd9f..4ffdb6bfbede 100644 > --- a/arch/csky/include/asm/pgtable.h > +++ b/arch/csky/include/asm/pgtable.h > @@ -158,6 +158,8 @@ static inline int pmd_present(pmd_t pmd) > return (pmd_val(pmd) != __pa(invalid_pte_table)); > } > > +#define pmd_large(pmd) (0) Nit: here and in other places, parentheses around 0 is not needed. -- Kirill A. Shutemov