From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F23B6C54E4A for ; Tue, 12 May 2020 14:45:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FD33206A5 for ; Tue, 12 May 2020 14:45:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="C/eggwJZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FD33206A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gat8xN37hUUZ9zKDYjm+JhuCJ/PB3TnJXnl03NRjsXs=; b=C/eggwJZxSujS1mM0NiTYWnB8 L2mt+w/9+pvKnZeq6gOpUZI0jdtihVPaL51/AdJ4vv8/RysHaV0XKKjHDuxj0nqa+Zb2JpV7vZP22 7x7RUnJKeVqNl/yvvHkdf3KuWetv/7uk+FWiHc98LBLswTYUcvOt82PuHPmYxJedXGkq2JvJzSrJc 12vknaeggIKmBZEhVFBoM70hlNuPWHPvtt5wGmH9Ma4Yb6twrckpcZmQ6pFy5bajYjoEEBkr7OJWc 2rVdCsfDiV/fAZe6Owl5tzTwOVofMU/uZdtp8vh5idnXPdXdmkPI4ruQfZbcN1AwhIaXlg78WTDZr 7iplIg+hQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYW9l-0004f8-L1; Tue, 12 May 2020 14:45:17 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYW9g-0003gy-RE; Tue, 12 May 2020 14:45:14 +0000 Received: from [10.44.0.192] (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 E64CB206A3; Tue, 12 May 2020 14:45:03 +0000 (UTC) Subject: Re: [PATCH 16/31] m68knommu: use asm-generic/cacheflush.h To: Christoph Hellwig , Andrew Morton , Arnd Bergmann , Roman Zippel References: <20200510075510.987823-1-hch@lst.de> <20200510075510.987823-17-hch@lst.de> From: Greg Ungerer Message-ID: Date: Wed, 13 May 2020 00:44:59 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200510075510.987823-17-hch@lst.de> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200512_074512_903860_725493CE X-CRM114-Status: GOOD ( 14.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, linux-xtensa@linux-xtensa.org, Michal Simek , Jessica Yu , linux-ia64@vger.kernel.org, linux-c6x-dev@linux-c6x.org, linux-sh@vger.kernel.org, linux-hexagon@vger.kernel.org, x86@kernel.org, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-m68k@lists.linux-m68k.org, openrisc@lists.librecores.org, linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Christoph, On 10/5/20 5:54 pm, Christoph Hellwig wrote: > m68knommu needs almost no cache flushing routines of its own. Rely on > asm-generic/cacheflush.h for the defaults. > > Signed-off-by: Christoph Hellwig Acked-by: Greg Ungerer Regards Greg > --- > arch/m68k/include/asm/cacheflush_no.h | 19 ++----------------- > 1 file changed, 2 insertions(+), 17 deletions(-) > > diff --git a/arch/m68k/include/asm/cacheflush_no.h b/arch/m68k/include/asm/cacheflush_no.h > index 11e9a9dcbfb24..2731f07e7be8c 100644 > --- a/arch/m68k/include/asm/cacheflush_no.h > +++ b/arch/m68k/include/asm/cacheflush_no.h > @@ -9,25 +9,8 @@ > #include > > #define flush_cache_all() __flush_cache_all() > -#define flush_cache_mm(mm) do { } while (0) > -#define flush_cache_dup_mm(mm) do { } while (0) > -#define flush_cache_range(vma, start, end) do { } while (0) > -#define flush_cache_page(vma, vmaddr) do { } while (0) > #define flush_dcache_range(start, len) __flush_dcache_all() > -#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 > -#define flush_dcache_page(page) do { } while (0) > -#define flush_dcache_mmap_lock(mapping) do { } while (0) > -#define flush_dcache_mmap_unlock(mapping) do { } while (0) > #define flush_icache_range(start, len) __flush_icache_all() > -#define flush_icache_page(vma,pg) do { } while (0) > -#define flush_icache_user_range(vma,pg,adr,len) do { } while (0) > -#define flush_cache_vmap(start, end) do { } while (0) > -#define flush_cache_vunmap(start, end) do { } while (0) > - > -#define copy_to_user_page(vma, page, vaddr, dst, src, len) \ > - memcpy(dst, src, len) > -#define copy_from_user_page(vma, page, vaddr, dst, src, len) \ > - memcpy(dst, src, len) > > void mcf_cache_push(void); > > @@ -98,4 +81,6 @@ static inline void cache_clear(unsigned long paddr, int len) > __clear_cache_all(); > } > > +#include > + > #endif /* _M68KNOMMU_CACHEFLUSH_H */ > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel