Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp933989ybk; Sun, 10 May 2020 00:59:50 -0700 (PDT) X-Google-Smtp-Source: APiQypLlVQ/ogB7OGIjdegz3jWxUReQmrBXIcBzQWD1I3kMISf9UkOLi6Zo7swuEQ+cLW73FOPTz X-Received: by 2002:a17:906:784c:: with SMTP id p12mr8801670ejm.346.1589097590089; Sun, 10 May 2020 00:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589097590; cv=none; d=google.com; s=arc-20160816; b=T7Z1mWYflvGiA2/49NhlE9w/rtAr/R3oOlr3fgy8vV3nbJwIYZHct91cNznUwMAuJ/ t+YheI0WdVf4kxVXe9yQhZGJg7OUqLQoqpQkb8QUoJvOBA8TNQzV3XmWjevxnIMW4BM8 0vJtPP357/nEb0dz66L6Q70ticbNsp71+fILLK+sf8rD++M4DImYhOH+asstOeEgNDNO iUiIXSWiWjPfLozUyzMnWjDM4959jLhki1wpDv5TTvyV+kRxmJJI84uRPWBs0reAAbvf KVLAoMPtAn1MH3s55qd2oI1dkdvS7KDsVm+h3N4myKsmYJY/eBlIgXg0Io5hc5XJkkzP EeQA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zo4317DbiHdABEbyspSMls5FOjemriZZxzncTT51l6w=; b=M9ZlTKUmTp9RGhUB9q7MpWVoCfkxpgMXICN+TpXIhNRxdib/yOXlLsiUZ7mOKiewYk oycGwJHyHgLGdQE0Lun9VptbOI0lbAZnZiS+Zuq8gl7nawycSyzt3RRUrE0dk/DuDYsP bEHlfNvKdOs0f7XJJ42F4fEwyc1jNjHu/kHgMk7pvcc35u/cDuJ+dUGG4SDhjKel7uCq EljbVGbVbP6d+syxm4FwUXS+ZHyf3ZQfJuLYhHVzR7n1EfkayR47WyHlZzscM6uoe1oJ ZA83rAbKmGSWf7O6Pq3dnsKj9OZPpJprIFYbPgZBpqvZOrylIWhcESexazC15vj7LeG+ E6tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="sJ6aO/As"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si2786986edj.601.2020.05.10.00.59.27; Sun, 10 May 2020 00:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="sJ6aO/As"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728883AbgEJH5w (ORCPT + 99 others); Sun, 10 May 2020 03:57:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728795AbgEJH4W (ORCPT ); Sun, 10 May 2020 03:56:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68072C061A0E; Sun, 10 May 2020 00:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=zo4317DbiHdABEbyspSMls5FOjemriZZxzncTT51l6w=; b=sJ6aO/AsE/UGH1p5MUgwwiZkdi jEhux/ge6iovJh89ymgFYpKfNhK2n5aeMfRRoZNQariQqh/MsK+USQtUBSU8IH/dzWSPE17M3p/fG 2mhbfsExTVHK4U/tS7rKrvY928nJOF7Iw7REJW1ivUvowAaoHI4uB4ADMFxlpMqQUU0tJDT6HXMuS aSrAgFLU+/XhBq4pOLlMpb053tAD83U+9ENyByebv3vLOB3LALQVkSU0pU1rUSHgoybBA1h2mYLtD DIo46u0QjH7tJaB5fGycTMakufmInPpID69WNI6IQSmb9IE0GrwQzLwKMw/lSh9nsLLcLX+ZgbBuU B2LFNvEQ==; Received: from [2001:4bb8:180:9d3f:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jXgod-0000KS-GW; Sun, 10 May 2020 07:56:03 +0000 From: Christoph Hellwig To: Andrew Morton , Arnd Bergmann , Roman Zippel Cc: Jessica Yu , Michal Simek , x86@kernel.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 16/31] m68knommu: use asm-generic/cacheflush.h Date: Sun, 10 May 2020 09:54:55 +0200 Message-Id: <20200510075510.987823-17-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200510075510.987823-1-hch@lst.de> References: <20200510075510.987823-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org m68knommu needs almost no cache flushing routines of its own. Rely on asm-generic/cacheflush.h for the defaults. Signed-off-by: Christoph Hellwig --- 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 */ -- 2.26.2