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,USER_AGENT_SANE_1 autolearn=unavailable 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 7AC30C54E4A for ; Tue, 12 May 2020 14:45:31 +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 4C16E206D3 for ; Tue, 12 May 2020 14:45:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="l7+PHwfP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C16E206D3 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-riscv-bounces+infradead-linux-riscv=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:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type: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=OYcxV9NU5LAlW+nVZmc6oEr3s3LI41Fd2WWKeMpN6ak=; b=l7+PHwfPxnlZNm xUJlrMZcpjMjKSLgZ3U+nUtKXM6K4t+/OjZ0BY22NJYqi8tLBZqB8RlNWOy+E8bes7O2zi63aZl5C UkbehJbgll5yQFfUgvv9g456MlPh/sntjsXZspNMpNIQ6ZYmht1w/hP70H2xaYNkcUmMSSowFU35m cvtzYYj+PRWPmDlEUl1Pe586jxHW+Q1EBllEclPq7t6xQZ2R3PKB2ZRBpysyZdVwLrQSJJCGnMo15 avjYHGLosWhSezsLdQ8A+jzDZEC3uji2Wiom5jno7JLuxF18J3JUezdQ2OlXaflW5L4cJ2kOtthZf n+N4ePkpRO2q1fNohXdA==; 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 1jYW9t-0005Jk-KT; Tue, 12 May 2020 14:45:25 +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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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-riscv@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 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=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 */ >