Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2640822imm; Fri, 20 Jul 2018 02:11:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfnR9JSRRtq2tw2E/GVrBq+JMnhyu4MyzSvaF2eTS67ZVQPRQxGQGyjoHU2t36XbBGiSEu1 X-Received: by 2002:a17:902:28a6:: with SMTP id f35-v6mr1328086plb.110.1532077866161; Fri, 20 Jul 2018 02:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532077866; cv=none; d=google.com; s=arc-20160816; b=kdL4RSGGyea2UQgVNlTIS/u0339VKjEdngBCtFAqrEYtRiDSphh4gAxvISbn3QBYcP R2LqI1Y4iUcUDjgGbiZrYIv0PxWnQhdTzwoZe+fUxUvHHyxgE+IpLTxkRjAENIA0vrRF kv3jWWatC1XtrH6aa+PhRlJbTrSZz02hLa093MtKwbacyQLbO1Febi/qaDxpwTIdYnaz 3v+ifG+ICgnYsHGpUfLfXHu9FOG/5Pmbj6VFALJy3ibzbpv9mxj+qipI4wPzIywz4oPi 96gDAeCYa9F4nzYTnJAe6ewZr0cQ/befoMGmhLC7RoSwNxP/iUwuruPucn+Htl+3oINJ 6V+w== 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:subject:cc:to:from:date :arc-authentication-results; bh=0u36exqyoBhliJri27lok6bcVf3OcnAmB1ZSv1SmOY4=; b=JYqXW/luLR/JIsJTjDKvrg+b2vAU70gjCxPMWtq1pmWki7xYV0H3f7ui5bYsLnw5Un X3qTaJOZgQ303fuMB6T1dhKhKlolq+28rvqFp/R5JSCijk3lxwKoDYxrvcKBaMj4zPBW VX2VLw2ZACQx9Ie4eWZoKhHTwAg8H1xp1L0vxPDJ07VVRJBCROhG8m3QKa4YWUdZ34aB pnjYu9Eas1r5b9EIc5diCV+Qcie4kAQU+vTkEqdWOm3BtE7Tw8ZYEuFRn4WHj6ZLaKyZ GnCs+sq7hTkaFjBf/SxlIXLPm7BjDnh6ZOyBgISknwDXHQmDgpXp8jE8KOZXrS7OhQ4W jzyA== 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 6-v6si1427519pfk.287.2018.07.20.02.10.50; Fri, 20 Jul 2018 02:11:06 -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 S1727805AbeGTJ5f (ORCPT + 99 others); Fri, 20 Jul 2018 05:57:35 -0400 Received: from mail.bootlin.com ([62.4.15.54]:39595 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbeGTJ5e (ORCPT ); Fri, 20 Jul 2018 05:57:34 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 71AF72073D; Fri, 20 Jul 2018 11:10:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-78-122.w90-88.abo.wanadoo.fr [90.88.20.122]) by mail.bootlin.com (Postfix) with ESMTPSA id 21E8E20618; Fri, 20 Jul 2018 11:10:04 +0200 (CEST) Date: Fri, 20 Jul 2018 11:10:04 +0200 From: Boris Brezillon To: Arnd Bergmann Cc: Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, Miquel Raynal Subject: Re: [PATCH 1/2] ia64: use asm-generic/io.h Message-ID: <20180720111004.3bbb6b8f@bbrezillon> In-Reply-To: <20180711120824.3882108-1-arnd@arndb.de> References: <20180711120824.3882108-1-arnd@arndb.de> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Miquel On Wed, 11 Jul 2018 14:08:05 +0200 Arnd Bergmann wrote: > asm-generic/io.h provides a generic implementation of all I/O accessors, > which the architectures can override. > > Since ia64 does not provide readsl/writesl etc, any driver using those > fails to build, and including asm-generic/io.h will provide the > missing interfaces, as well as any other future interfaces that get > added there. We need to #define a couple of symbols to themselves > in the ia64 to ensure that we use the ia64 specific version of those > rather than the generic one. > > There should be no other effect than adding {read,write}s{b,w,l}() > as well as {in,out}s{b,w,l}_p(), which were also not provided > by ia64 but are provided by the generic header for historic reasons. > > Signed-off-by: Arnd Bergmann As for the other patch, I compile-tested it and it fixes the compilation errors reported by kbuild robots. Tested-by: Boris Brezillon If everyone is fine with that, we'll take the patch through the NAND tree. Thanks, Boris > --- > arch/ia64/include/asm/io.h | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h > index fb0651961e2c..6f952171abf9 100644 > --- a/arch/ia64/include/asm/io.h > +++ b/arch/ia64/include/asm/io.h > @@ -83,12 +83,14 @@ virt_to_phys (volatile void *address) > { > return (unsigned long) address - PAGE_OFFSET; > } > +#define virt_to_phys virt_to_phys > > static inline void* > phys_to_virt (unsigned long address) > { > return (void *) (address + PAGE_OFFSET); > } > +#define phys_to_virt phys_to_virt > > #define ARCH_HAS_VALID_PHYS_ADDR_RANGE > extern u64 kern_mem_attribute (unsigned long phys_addr, unsigned long size); > @@ -433,9 +435,11 @@ static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned lo > { > return ioremap(phys_addr, size); > } > +#define ioremap ioremap > +#define ioremap_nocache ioremap_nocache > #define ioremap_cache ioremap_cache > #define ioremap_uc ioremap_nocache > - > +#define iounmap iounmap > > /* > * String version of IO memory access ops: > @@ -444,6 +448,13 @@ extern void memcpy_fromio(void *dst, const volatile void __iomem *src, long n); > extern void memcpy_toio(volatile void __iomem *dst, const void *src, long n); > extern void memset_io(volatile void __iomem *s, int c, long n); > > +#define memcpy_fromio memcpy_fromio > +#define memcpy_toio memcpy_toio > +#define memset_io memset_io > +#define xlate_dev_kmem_ptr xlate_dev_kmem_ptr > +#define xlate_dev_mem_ptr xlate_dev_mem_ptr > +#include > + > # endif /* __KERNEL__ */ > > #endif /* _ASM_IA64_IO_H */