Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp329950imm; Mon, 9 Jul 2018 02:32:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe34mJDQqcNx2sn/pXTKKTw2zC3hkys0jvll/j6ioLE8AFNEHM5flpYYFhekjZyuNPNzvj/ X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr19464153plq.201.1531128741065; Mon, 09 Jul 2018 02:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531128741; cv=none; d=google.com; s=arc-20160816; b=Bn+N4JT3lR3G3LydzIq3q++xQSIK9kkRU9t8dKgWOBV+bVavexAYVp4eSDvf11ZVWl xWZIo1zHmCFAMlnvpIjuMk7M1uWjPbQhujTurzpcpDme3u/JchMDfUv5oi0S4hGPcEhL OtFCHDjWhl2kJFKrCtJfyGMnefmZ8rYfAVMHPJ9Quo4oql4YoUBrDMCSzTyLPu1OvTxy I8dEWIOnm1NEkJbGGKDMXxZdGf0pK+XJIYiVs7Y5FQPfLW/tmTz6VcKLdp/Z5mSi4c4m jljt1xlTFKFoq3bZOLL4GWpSAXf6UCpFVATjeHyaQErb5tAAiLwN5AGKk41SNgHtHtI5 Sx4A== 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=ZwzCNQ5acBsNtS/MbsOMyzhRij8/86tZW8gbum6br00=; b=GpITPrVhLwEztYK7dIdIdPpwFGRCzFTH6RKSL+G2k5W1sB9vAsaWvX3hyvWAib70Eg LpGtt3LtnSEDc1sL1ogFNbeCKZnNZXLS7+AODz1NPsKfnzsFHTwbVQdPGcZocbk0HMYS FTs/GDJwAI/cdiwwCT9OU+rzt4MeHtFppKqXyL64tJy2Thd5MV/+TzTGEzRwXOGxf6NL drS4XOG8AbcTCVahpNyL3Jd354fgY66RWKx5zrM7KpUMT6Aj61iquV3+Duen+orE8mpQ X+ofietv9r27v57Y26Hx+UEC/tpO9Isw+C0h9HgblzKZqN3QqSpOu6N2KEbLhT3DQipe JWXg== 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 h8-v6si13596099pgr.379.2018.07.09.02.32.06; Mon, 09 Jul 2018 02:32:21 -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 S933049AbeGIJav (ORCPT + 99 others); Mon, 9 Jul 2018 05:30:51 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:59298 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932805AbeGIJao (ORCPT ); Mon, 9 Jul 2018 05:30:44 -0400 Received: from ayla.of.borg ([84.194.111.163]) by laurent.telenet-ops.be with bizsmtp id 8ZWi1y00f3XaVaC01ZWi2o; 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-0002dq-Q4; 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-00069b-Os; 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 4/5] m68k/io: Move mem*io define guards to Date: Mon, 9 Jul 2018 11:30:39 +0200 Message-Id: <20180709093040.23597-5-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 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()". v2: - No changes. --- 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 608e12f058a7cd7d..aac7f045f7f0aa85 100644 --- a/arch/m68k/include/asm/kmap.h +++ b/arch/m68k/include/asm/kmap.h @@ -50,18 +50,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