Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp298594ybl; Thu, 30 Jan 2020 22:34:22 -0800 (PST) X-Google-Smtp-Source: APXvYqz77MduC7iXPOe7ik6eklb8SkTzVIKBmtZgrEYt+eub7diCZcikhUEdjDrTppUfOj/X8GHE X-Received: by 2002:a9d:784b:: with SMTP id c11mr6328186otm.246.1580452462433; Thu, 30 Jan 2020 22:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580452462; cv=none; d=google.com; s=arc-20160816; b=lroCwo9Ej0x11xTYmTJhPA206tVYGzre3pQNSFkLH86Zm1LEDLSQh1iYa21r1Q0Fhv douCS8k3rmewOY1/C4BOYw7UmVxIIhmOsNjbhXcuGqZBkUoPZDUB4ZdJ/NGUs7u3LBA1 r3YRyH+rNyLHWQ9ai+wS9+oBgxC7f3KhQQmFDxqmiyAYGf4xPYpyhupQ9SqCR0WxscZp AAJZ7BxZBSIb1g5YlpZ9l3FVWe+gFo8I3CMo6refLokAYrPISYNuM59jN3lB8C40eoP0 Zb1/qg9Fqh3+qEjKO4d5VTf08P9EQaAp2WJd9BIiuJQZovy7Tqc3zJMH8N9BmEPDVzXv YBJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=61pbl/NP9Rg/jbEA6pv5dPvuO/a1BazJ7pzXOTmKvbA=; b=B9yk6QJrJ5GrGotHrPWEBLgLjiScWF/C9NTaiJUYrgQODUiQeEkPQ479VZOkzy0dqX /EZbdD/hjwP0xLFosIEXHJX42Ac3ZR/iXiZHZCJm4IW7Qzac2ak2rouNyTCbvIA9ktwW sKnqg4LVDw+1K71/TuQBVknn5oS/A8wngRd0gh8QXoHAaurcsmq49XImPFvegRCVbTxi 43em3bRLldIjjBk++ZDTRXfKBJ9TC4DSlfREvAt1XxTrBIUtDt4o7lOcn6s1raGCVUz/ tc4eLGf/vJhqeRMTTJnSQDoqR+XiA1w3sYiEBL/hcB+cRyrDEV1xHTUFk/+CbrkEuvS3 5XXw== 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 t11si2096028otk.256.2020.01.30.22.34.08; Thu, 30 Jan 2020 22:34:22 -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 S1726567AbgAaGbx (ORCPT + 99 others); Fri, 31 Jan 2020 01:31:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:41842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgAaGbx (ORCPT ); Fri, 31 Jan 2020 01:31:53 -0500 Received: from [10.44.0.22] (unknown [103.48.210.53]) (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 CBB9B20674; Fri, 31 Jan 2020 06:31:51 +0000 (UTC) Subject: Re: [PATCH 0/5] Rewrite Motorola MMU page-table layout To: Peter Zijlstra , Geert Uytterhoeven Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Will Deacon References: <20200129103941.304769381@infradead.org> From: Greg Ungerer Message-ID: <8a81e075-d3bd-80c1-d869-9935fdd73162@linux-m68k.org> Date: Fri, 31 Jan 2020 16:31:48 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200129103941.304769381@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On 29/1/20 8:39 pm, Peter Zijlstra wrote: > Hi! > > In order to faciliate Will's READ_ONCE() patches: > > https://lkml.kernel.org/r/20200123153341.19947-1-will@kernel.org > > we need to fix m68k/motorola to not have a giant pmd_t. These patches do so and > are tested using ARAnyM/68040. > > It would be very good if someone can either test or tell us what emulator to > use for 020/030. This series breaks compilation for the ColdFire (with MMU) variant of the m68k family: CC arch/m68k/kernel/sys_m68k.o In file included from ./arch/m68k/include/asm/pgalloc.h:12, from ./include/asm-generic/tlb.h:16, from ./arch/m68k/include/asm/tlb.h:5, from arch/m68k/kernel/sys_m68k.c:35: ./arch/m68k/include/asm/mcf_pgalloc.h: In function ‘__pte_free_tlb’: ./arch/m68k/include/asm/mcf_pgalloc.h:41:24: error: passing argument 1 of ‘pgtable_pte_page_dtor’ from incompatible pointer type [-Werror=incompatible-pointer-types] pgtable_pte_page_dtor(page); ^~~~ In file included from arch/m68k/kernel/sys_m68k.c:13: ./include/linux/mm.h:1949:55: note: expected ‘struct page *’ but argument is of type ‘pgtable_t’ {aka ‘struct *’} static inline void pgtable_pte_page_dtor(struct page *page) ~~~~~~~~~~~~~^~~~ In file included from ./include/linux/mm.h:10, from arch/m68k/kernel/sys_m68k.c:13: ./include/linux/gfp.h:577:40: error: passing argument 1 of ‘__free_pages’ from incompatible pointer type [-Werror=incompatible-pointer-types] #define __free_page(page) __free_pages((page), 0) ^~~~~~ ./arch/m68k/include/asm/mcf_pgalloc.h:42:2: note: in expansion of macro ‘__free_page’ __free_page(page); ^~~~~~~~~~~ ./include/linux/gfp.h:566:39: note: expected ‘struct page *’ but argument is of type ‘pgtable_t’ {aka ‘struct *’} extern void __free_pages(struct page *page, unsigned int order); ~~~~~~~~~~~~~^~~~ cc1: some warnings being treated as errors scripts/Makefile.build:265: recipe for target 'arch/m68k/kernel/sys_m68k.o' failed Easy to reproduce. Build for the m5475evb_defconfig. Regards Greg