Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp330109imm; Mon, 9 Jul 2018 02:32:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdbeb1RpC0x2bmrHczvhlSYH4QgKdQeR+AzApRIysEZWk31/XHHQmpRDpM0XtR9aqb3ZAIj X-Received: by 2002:aa7:808f:: with SMTP id v15-v6mr20691040pff.38.1531128754894; Mon, 09 Jul 2018 02:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531128754; cv=none; d=google.com; s=arc-20160816; b=0b9UFtwKw/quHsQ7hRfvVZi9lYxrXP2iHO4sjPGcBfRV7CnnDPKeABMlUjdiKBufAS xi8I95sb1iuycibGG0r6dBipktKgeAaQMkKSFztraXhV5AhrYDYEv+EbF4s+SW91eReF khkY07NtrEA1zSO2Aqs0ThbXakqw+nzidQlT2wrL7muSK99tjIz+NIUIHaby730cP2Au cbhN+HkYbVLtjkXWr1iCKi+iNhPmHWYSgZPlNriTGLe/EHH9YcQ0HB2AQnyVuRABvdnD FaNXYAbccPIultglcCHc5cZ+Y6hgR9rHMBuoOGGa3J49scXe7MOsKbU/d3Xba9xe8e7B nKZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5SrOnWMkZoJvpBaJ+XqFG7YolEp3yWzkTCD4QD3j2zQ=; b=DeknOXE04+LMaeG1TUCUHwzAoFTJ1wKHrCZ9G8yW59OFsqg5lJtAQN7ttOyR2Ovb0C axlAyn0/BEAMN/R1lGD1t4X6SZH5YDgC2wAsav5rlVGkZrCDIZGWtj5k7uaX5XME96zl 9xszMOvUB5W79HBLjeFl034sG3OahAjJS+oAz9AqVLRK1VgAwaPHXICay/DHhkUsJE8d c/5GqK1nmeA0GpZALtFFL2pi8Uf1DwFb0F3cfnJwKuV9J2t3XfzIf+ek+LhqYNVvOXUF uzXpFrUBzH+J+os6VnPBaiEsh1/QJckTEYFXEQXNrgcOD/Ub3ycbwTTGxXeQeFa/88u0 sj9A== 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 e98-v6si14591402plb.150.2018.07.09.02.32.20; Mon, 09 Jul 2018 02:32:34 -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; 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 S933002AbeGIJau (ORCPT + 99 others); Mon, 9 Jul 2018 05:30:50 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:48974 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932645AbeGIJao (ORCPT ); Mon, 9 Jul 2018 05:30:44 -0400 Received: from ayla.of.borg ([84.194.111.163]) by albert.telenet-ops.be with bizsmtp id 8ZWi1y0173XaVaC06ZWiQ4; Mon, 09 Jul 2018 11:30:43 +0200 Received: from rox.of.borg ([192.168.97.57]) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fcSVG-0002de-NO; Mon, 09 Jul 2018 11:30:42 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1fcSVG-00069S-Lc; Mon, 09 Jul 2018 11:30:42 +0200 From: Geert Uytterhoeven To: Greg Ungerer , Dmitry Torokhov , Helge Deller Cc: linux-m68k@lists.linux-m68k.org, netdev@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/5] m68k/io: Add missing ioremap define guards, fix typo Date: Mon, 9 Jul 2018 11:30:36 +0200 Message-Id: <20180709093040.23597-2-geert@linux-m68k.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180709093040.23597-1-geert@linux-m68k.org> References: <20180709093040.23597-1-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Add missing define guard for ioremap_wt(), - Move ARCH_HAS_IOREMAP_WT from to , as it is applicable to Coldfire with MMU, too, - Fix typo s/ioremap_fillcache/ioremap_fullcache/, - Add define guard for iounmap() for consistency with other architectures. Fixes: 9746882f547d2f00 ("m68k: group io mapping definitions and functions") Signed-off-by: Geert Uytterhoeven --- v2: - Move ARCH_HAS_IOREMAP_WT to fix "ioremap_wt redefined" warnings with m5475evb defconfig. --- arch/m68k/include/asm/io_mm.h | 2 -- arch/m68k/include/asm/kmap.h | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h index fe485f4f5fac4d92..7e518303786c2d65 100644 --- a/arch/m68k/include/asm/io_mm.h +++ b/arch/m68k/include/asm/io_mm.h @@ -21,8 +21,6 @@ #ifdef __KERNEL__ -#define ARCH_HAS_IOREMAP_WT - #include #include #include diff --git a/arch/m68k/include/asm/kmap.h b/arch/m68k/include/asm/kmap.h index 84b8333db8ad1987..608e12f058a7cd7d 100644 --- a/arch/m68k/include/asm/kmap.h +++ b/arch/m68k/include/asm/kmap.h @@ -4,6 +4,8 @@ #ifdef CONFIG_MMU +#define ARCH_HAS_IOREMAP_WT + /* Values for nocacheflag and cmode */ #define IOMAP_FULL_CACHING 0 #define IOMAP_NOCACHE_SER 1 @@ -16,6 +18,7 @@ */ extern void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag); +#define iounmap iounmap extern void iounmap(void __iomem *addr); extern void __iounmap(void *addr, unsigned long size); @@ -33,13 +36,14 @@ static inline void __iomem *ioremap_nocache(unsigned long physaddr, } #define ioremap_uc ioremap_nocache +#define ioremap_wt ioremap_wt static inline void __iomem *ioremap_wt(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); } -#define ioremap_fillcache ioremap_fullcache +#define ioremap_fullcache ioremap_fullcache static inline void __iomem *ioremap_fullcache(unsigned long physaddr, unsigned long size) { -- 2.17.1