Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp627112img; Thu, 28 Feb 2019 05:23:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IYhQgfKaLV2MSQ3W1hGWqSZx+JlAfcbkGQM1dQTeSoeSpacJSdBSIluBrj1RWh6Otd/amYQ X-Received: by 2002:a62:ee0e:: with SMTP id e14mr7440049pfi.201.1551360239475; Thu, 28 Feb 2019 05:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551360239; cv=none; d=google.com; s=arc-20160816; b=tt9ZE8WykAjKJMXBLTmyKhc7WTtFFQByHT7legzsL0QNnhq2qSxvby2KHOiVzIeNND V4Wck6bHxbAnUkP8M1DeFYqHboT8nZuqKW3Ok+EKAJ0KvBNWlFu0cSFtHM+UEvjQf4q3 HrB7wic0rZf9399gPPWVn1V9ii1nEo+U2NsJ/hehE0CABAv+szB/EUVjKbGyBphuU7Tt 2Tt512b0uCsYxQZP+YElT6dPNKBa1JmxE8QH79DXBMg6hHBpcSqYxngjeqmGixPuNbkm H+EHLeX0blBklJGHs+d16tzUuT2N4OpmxkDaK9S/v2R6toDogFUPg2MWglu+fh1JS0hE TmXA== 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; bh=TcJwoA8exl8075X2LFgyOfIWV3Nji8fTLObRm1fTh8E=; b=0vh+2in2WzmKUFOJLtBYy8+L2iSCHgkp/KLTJjJUXuEh3INBdiqIDUKB6vifvSuV1R m5W2QPAmzA52xAzKv9yFdW6AfISzINCuTzigb9GiTfq7Fv11EORxWtLM6XjT89CSbrAj BFjOiDxFHhilzTKygiz+EeV8igKYwOuLU0A+CMG2R3KazdmoKIic6oA0pPnfLHyNVGGB rCmAooumS1WMKCuJN+zoJsu0xkz5HX6ndjqEnTP0teADTja2pPL0f/WxGQvfGQB3c0o8 lHuCwhJyzBUro6T5Ya8J7bYfL048R+sHS0vaEkrzhMnecdtwY3/ClU7A0vrTP2bpPnXd ZzBg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r75si20473726pfc.136.2019.02.28.05.23.43; Thu, 28 Feb 2019 05:23:59 -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; 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 S1732124AbfB1Lxo (ORCPT + 99 others); Thu, 28 Feb 2019 06:53:44 -0500 Received: from mail-ua1-f65.google.com ([209.85.222.65]:33709 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbfB1Lxo (ORCPT ); Thu, 28 Feb 2019 06:53:44 -0500 Received: by mail-ua1-f65.google.com with SMTP id q17so18586097uam.0 for ; Thu, 28 Feb 2019 03:53:43 -0800 (PST) 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=TcJwoA8exl8075X2LFgyOfIWV3Nji8fTLObRm1fTh8E=; b=SsYQsTzn89HW7TBDh0hHrwj/P2gf+aSfWIlNFExb1/Y+vwekGGjXIi5hqZkOHrcFkx A1+MqgnmUcmkjyj65luVeEHtUrE45X9TOxZj3mNmXIxY8YROQNpxySH7/oxUUMs1fYfQ OX+HhRU+tABUleHJ64vft/lqR14HeAdSxJ4CN1HdGRZHl2xc9WQg41RVRPimOTj+5XrP PUNHciBjsQ+CBoWf13eI9lN3JAzeIFE1jdvGi0T+p1JIMhbTdW2d092/IRtfCwGu8Euj x3eYg7dm+sujR5GDblnmR3n6jGSQjMkDG5JALBr8lP7MTSjtmL1TB+5hNgLBvMOd8gkT LYsQ== X-Gm-Message-State: AHQUAuYWVKuEp4UpKIidRTpAxgOX89HpGdSa0d7XFHr4cZ7EEUcwT/KK m8YwbFEv3CGCtPoRbfOKSUGdCetQCFV9sDAzzHA= X-Received: by 2002:a67:ead0:: with SMTP id s16mr4434066vso.63.1551354822670; Thu, 28 Feb 2019 03:53:42 -0800 (PST) MIME-Version: 1.0 References: <20190227170608.27963-1-steven.price@arm.com> <20190227170608.27963-10-steven.price@arm.com> <20190228113653.GB3766@rapoport-lnx> In-Reply-To: <20190228113653.GB3766@rapoport-lnx> From: Geert Uytterhoeven Date: Thu, 28 Feb 2019 12:53:30 +0100 Message-ID: Subject: Re: [PATCH v3 09/34] m68k: mm: Add p?d_large() definitions To: Mike Rapoport Cc: Steven Price , Linux MM , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Peter Zijlstra , Thomas Gleixner , Will Deacon , "the arch/x86 maintainers" , "H. Peter Anvin" , Linux ARM , Linux Kernel Mailing List , Mark Rutland , "Liang, Kan" , linux-m68k Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On Thu, Feb 28, 2019 at 12:37 PM Mike Rapoport wrote: > On Wed, Feb 27, 2019 at 08:27:40PM +0100, Geert Uytterhoeven wrote: > > On Wed, Feb 27, 2019 at 6:07 PM 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 m68k, we don't support large pages, so add stubs returning 0 > > > > > > CC: Geert Uytterhoeven > > > CC: linux-m68k@lists.linux-m68k.org > > > Signed-off-by: Steven Price > > > > Thanks for your patch! > > > > > arch/m68k/include/asm/mcf_pgtable.h | 2 ++ > > > arch/m68k/include/asm/motorola_pgtable.h | 2 ++ > > > arch/m68k/include/asm/pgtable_no.h | 1 + > > > arch/m68k/include/asm/sun3_pgtable.h | 2 ++ > > > 4 files changed, 7 insertions(+) > > > > If the definitions are the same, why not add them to > > arch/m68k/include/asm/pgtable.h instead? > > Maybe I'm missing something, but why the stubs have to be defined in > arch/*/include/asm/pgtable.h rather than in include/asm-generic/pgtable.h? That would even make more sense, given most architectures don't support huge pages. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds