Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3847221imm; Mon, 2 Jul 2018 06:39:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcX1xfcfhDyB/JMVQreGTsqcMzYMCMmj9dbwsuP4UJZFtjBgF32l4Ti61jK9liMWO80FCYE X-Received: by 2002:a62:4c19:: with SMTP id z25-v6mr9529430pfa.113.1530538754258; Mon, 02 Jul 2018 06:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530538754; cv=none; d=google.com; s=arc-20160816; b=fY6tnMmzUZ8XYgGoVg/YMMrVoHbodw+4TJ7L+vdwL5yvN5w9Czf2IgFAU75ozAt3wZ XpwTVTFGI5Swk6gETPPU1IWZkW7bXOoYXbUpE5J74c29D8x6YvHz2hU9WFslXKNS9pmh n5Z3qDfreEjtUp7DAo6LHDYTiNMJtB5QN2njgPScbJ/wOV7fwGf9ebZd57Ilh3O1O/mj Sd3navX+8oJAFNhHnybk9e/8/PKdKOjUZ/S4V2yXwm+0+R3Xow6ShdFzTrdpYFS4uz8j /NDiy0GkoKZ6kp5Ga5hujOq4pX6RV/xoZ++qGHoFvrFx+dFUQ1n2vU26P3AS3Q4+duZj kY1Q== 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=L73SL4JzyCWZY0Dzk73mPgozlch4jn95slrr35c2qes=; b=Ja+ymmG2KmNiLYL03IkdvDxNMv+tMkY25oFU2cOnE07CoYpZ2FtI9ZfXgfiNYHXmtS dKQl2l9NJ4JahPGJWeeYDCTIGCr+IV7FWAvvPhMxiNeCAkcNvBfwAa6WZ2tA16r7Wmpx EQxRW+Fv+++MbfQ1lF1KTiIWNrNA2ucjpLdMNCVavy5KIkBaiZFjf8ePhqnRg8uCVPb+ aukHaqGtgeie0wvw+2cKawQkW9OGjAHdPv8/uzABbVRip7x6g7VTXN24iwxA8MaM0ulU BSG+CUhPDE8NVlvotVcCtBroTccSjfE0RJn43mkE2WHMN9gAJ1xGRULapBY4+fk/+aFL eDjg== 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 n2-v6si14494865pge.633.2018.07.02.06.38.59; Mon, 02 Jul 2018 06:39:14 -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 S1752768AbeGBNfn (ORCPT + 99 others); Mon, 2 Jul 2018 09:35:43 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:39386 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752736AbeGBNff (ORCPT ); Mon, 2 Jul 2018 09:35:35 -0400 Received: from ayla.of.borg ([84.194.111.163]) by albert.telenet-ops.be with bizsmtp id 5pbZ1y0133XaVaC06pbZYl; Mon, 02 Jul 2018 15:35:34 +0200 Received: from rox.of.borg ([192.168.97.57]) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fZyzN-0001ZB-RG; Mon, 02 Jul 2018 15:35:33 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1fZyzN-0001QZ-QG; Mon, 02 Jul 2018 15:35:33 +0200 From: Geert Uytterhoeven To: Greg Ungerer , "David S . Miller" , 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 4/5] m68k/io: Move mem*io define guards to Date: Mon, 2 Jul 2018 15:35:31 +0200 Message-Id: <20180702133532.5412-5-geert@linux-m68k.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180702133532.5412-1-geert@linux-m68k.org> References: <20180702133532.5412-1-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mem*io define guards are applicable to all users of . Hence move them, and drop the #ifdef. Signed-off-by: Geert Uytterhoeven --- To avoid redefined warnings, this depends on "net: mac8390: Use standard memcpy_{from,to}io()". --- arch/m68k/include/asm/io_no.h | 11 ----------- arch/m68k/include/asm/kmap.h | 3 +++ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/arch/m68k/include/asm/io_no.h b/arch/m68k/include/asm/io_no.h index 83a0a6d449f44bdd..c207428fae5953e7 100644 --- a/arch/m68k/include/asm/io_no.h +++ b/arch/m68k/include/asm/io_no.h @@ -131,17 +131,6 @@ static inline void writel(u32 value, volatile void __iomem *addr) #define PCI_SPACE_LIMIT PCI_IO_MASK #endif /* CONFIG_PCI */ -/* - * These are defined in kmap.h as static inline functions. To maintain - * previous behavior we put these define guards here so io_mm.h doesn't - * see them. - */ -#ifdef CONFIG_MMU -#define memset_io memset_io -#define memcpy_fromio memcpy_fromio -#define memcpy_toio memcpy_toio -#endif - #include #include #include diff --git a/arch/m68k/include/asm/kmap.h b/arch/m68k/include/asm/kmap.h index bf1026def698f21f..dd4a365bf463d3cf 100644 --- a/arch/m68k/include/asm/kmap.h +++ b/arch/m68k/include/asm/kmap.h @@ -48,18 +48,21 @@ static inline void __iomem *ioremap_fullcache(unsigned long physaddr, return __ioremap(physaddr, size, IOMAP_FULL_CACHING); } +#define memset_io memset_io static inline void memset_io(volatile void __iomem *addr, unsigned char val, int count) { __builtin_memset((void __force *) addr, val, count); } +#define memcpy_fromio memcpy_fromio static inline void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) { __builtin_memcpy(dst, (void __force *) src, count); } +#define memcpy_toio memcpy_toio static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int count) { -- 2.17.1