Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2682991ybg; Thu, 24 Oct 2019 13:30:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtWtIcqBuaLIc8cuHjPKzqk3NmoKumLtJw3U4YxSBQcaur78BPjScLwaE/PgNXA5CA34q9 X-Received: by 2002:a50:fe0f:: with SMTP id f15mr46783edt.89.1571949015699; Thu, 24 Oct 2019 13:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571949015; cv=none; d=google.com; s=arc-20160816; b=YgcowzOnwLnrcG9mtr+Gi9fBuzzMiNt4K5vYNfZUMwtFwNgNkrDteXuaVwuRsyUUwC hGmABjf8fRJRIAzkqSHgiQSRx8O2//L6t/XGs+UslTZWKv+yO4sOOlH+eN1pfLhG1f4B TjlVQg/Rkty262En1f+mDQPb0uprznhpI0WDuKAB5244uAoZn6ua6ElK3H1BnRtuMT1v zcorLNUDgLP8Xu5FGCAv5pD0i3RAmB+EfaM++GWCoUjbFdkzI1yY9hmGsb8sZOvPTEmU 7s0fUH9J7UmxFzQJb9M3VUNG82wy6KqpbdGUXtkaO7OzLr3vQIpq5fBHmDUPqHVXtPV0 AeHw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MDBtCH5c/IW6KsN2PJoe+UfsZatmSSfu+mg9b+I5fmM=; b=wirh2Lc3O9w0tQc/plxZULw0VVeAw1dJ9ZMjyCE0IYAZtbqQk9qCl6oEi+cZRN3uHo Tk7hpMjppQwy6IDVo1yo9IPHqYTtzfGuFCmqT1jj+Y8ME3JDilYvA2TW4Y/jqKhDusQ3 LtVoAOyTMBZKyAdP7EFNArxUypn2kXWcWhtLgr24hHnnyRQJ9jwOxQQDOYawD7CYcWFy 4XziL92AE5Ap8edj2zezq9PsyJrxRQqSASu1yAoLjwWmgjs/2rT1C6ob0nlu2BuhCkWI FrZdEoVWuxdIBptczEtEBDoBvv3DrNM2LFOiM4c8L8N7pcWJ4wL/MX6RtK7GpN2Fvzo4 48dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tpPSOqsL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si13983972edi.413.2019.10.24.13.29.51; Thu, 24 Oct 2019 13:30:15 -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=@kernel.org header.s=default header.b=tpPSOqsL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408451AbfJXFfr (ORCPT + 99 others); Thu, 24 Oct 2019 01:35:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:52934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390377AbfJXFfq (ORCPT ); Thu, 24 Oct 2019 01:35:46 -0400 Received: from rapoport-lnx (nesher1.haifa.il.ibm.com [195.110.40.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B28CB21655; Thu, 24 Oct 2019 05:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571895345; bh=HtXRJiY7E2WBnhLRCrWIVwj9zwzEbWwIp+kCGNGU0Vg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tpPSOqsLnoWaoVDB4h50UjvklrLgrRrHwG3rkhRndGIgW8V6sc9hNTf4UN34hFwxd EDlIQgRgR2JO3vRsExo5akPfc8ur10rMzq+eFhkh9/wE3wVVi86wgylxz9wN3JsIOW jZczc3/Wgo5n0bXYOQjP4NRTDpq4bC2/PUFWinU8= Date: Thu, 24 Oct 2019 08:35:34 +0300 From: Mike Rapoport To: Greg Ungerer Cc: linux-mm@kvack.org, Andrew Morton , Anton Ivanov , Arnd Bergmann , "David S. Miller" , Geert Uytterhoeven , Greentime Hu , Helge Deller , "James E.J. Bottomley" , Jeff Dike , "Kirill A. Shutemov" , Linus Torvalds , Mark Salter , Matt Turner , Michal Simek , Richard Weinberger , Russell King , Sam Creasey , Vincent Chen , Vineet Gupta , linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, linux-um@lists.infradead.org, sparclinux@vger.kernel.org, Mike Rapoport Subject: Re: [PATCH 04/12] m68k: nommu: use pgtable-nopud instead of 4level-fixup Message-ID: <20191024053533.GA12281@rapoport-lnx> References: <1571822941-29776-1-git-send-email-rppt@kernel.org> <1571822941-29776-5-git-send-email-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Thu, Oct 24, 2019 at 02:09:01PM +1000, Greg Ungerer wrote: > Hi Mike, > > On 23/10/19 7:28 pm, Mike Rapoport wrote: > >From: Mike Rapoport > > > >The generic nommu implementation of page table manipulation takes care of > >folding of the upper levels and does not require fixups. > > > >Simply replace of include/asm-generic/4level-fixup.h with > >include/asm-generic/pgtable-nopud.h. > > > >Signed-off-by: Mike Rapoport > >--- > > arch/m68k/include/asm/pgtable_no.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > >diff --git a/arch/m68k/include/asm/pgtable_no.h b/arch/m68k/include/asm/pgtable_no.h > >index c18165b..ccc4568 100644 > >--- a/arch/m68k/include/asm/pgtable_no.h > >+++ b/arch/m68k/include/asm/pgtable_no.h > >@@ -2,7 +2,7 @@ > > #ifndef _M68KNOMMU_PGTABLE_H > > #define _M68KNOMMU_PGTABLE_H > >-#include > >+#include > > /* > > * (C) Copyright 2000-2002, Greg Ungerer > > This fails to compile for me (targeting m5208evb_defconfig): > > CC init/main.o > In file included from ./arch/m68k/include/asm/pgtable_no.h:56:0, > from ./arch/m68k/include/asm/pgtable.h:3, > from ./include/linux/mm.h:99, > from ./include/linux/ring_buffer.h:5, > from ./include/linux/trace_events.h:6, > from ./include/trace/syscall.h:7, > from ./include/linux/syscalls.h:85, > from init/main.c:21: > ./include/asm-generic/pgtable.h:738:34: error: unknown type name ‘pmd_t’ > static inline int pmd_soft_dirty(pmd_t pmd) > ^ ... > scripts/Makefile.build:265: recipe for target 'init/main.o' failed > make[1]: *** [init/main.o] Error 1 > Makefile:1649: recipe for target 'init' failed > make: *** [init] Error 2 The hunk below fixes the build. diff --git a/arch/m68k/include/asm/page.h b/arch/m68k/include/asm/page.h index c00b67a..05e1e1e 100644 --- a/arch/m68k/include/asm/page.h +++ b/arch/m68k/include/asm/page.h @@ -21,7 +21,7 @@ /* * These are used to make use of C type-checking.. */ -#if CONFIG_PGTABLE_LEVELS == 3 +#if !defined(CONFIG_MMU) || CONFIG_PGTABLE_LEVELS == 3 typedef struct { unsigned long pmd[16]; } pmd_t; #define pmd_val(x) ((&x)->pmd[0]) #define __pmd(x) ((pmd_t) { { (x) }, }) > Regards > Greg > -- Sincerely yours, Mike.