Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp585288pxk; Wed, 16 Sep 2020 11:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzjO3I4gHguZ8BDJV3TQK2F9UyQ2Jonl7oEF7n1qU5RdnLazYSQ+DMcRswyUuzyMX4I1r2 X-Received: by 2002:a05:6402:d09:: with SMTP id eb9mr28713063edb.219.1600280816148; Wed, 16 Sep 2020 11:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600280816; cv=none; d=google.com; s=arc-20160816; b=fanqyFUZoPBbCXln2VObp08U7V3K5gKiPXigwTf4QVR+B/u3fKKDMgNFY94jJSuNfi CXK7jIu28Wm6JZ23UaFrgoC9V7eaqtBqdBfDYS6Kqkx/DcGIEUhhxkW+5tUzHMcLh/P4 Be+kixQD4kM0pXiIx8x5NW/SLlEspT9JCSlso8vkxhJ+sYsroc5TbUEbRAkvbf3IA5ak yHo5vnwriGoErFOv6Ec79l3KuQtvXN+UjVo7ZO/o4Y64ICflJcOlYu2XNJIBXcjzV/e0 nyROVv8vA8D1xHu+xX4Lj84VDxSpqmrLoq+dHE0unwP9JKOBWazGLEESMdVY9KU2ZYRm dQMg== 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; bh=ERd1EH+vP5ZG9EcQmwYaZ05CJF0qXmBznTtD9IRE6EY=; b=yEnt0L77Vk9XiR0dSOZMyOhyhoceoYUVZbCnzI+DPZhAY7qKT5wCmAZsHkqLBX+qa+ 0AliA4DoXUjSvnWMzvO7zYw9lHXChyQh6yMKA4CRr454T0nU8oSbwIKpzmQgFWlcnTBC qEXofXQnBOK6u+TMJyl7DFDgn5WGmC7ggtWIpwgg+cU+/rGd9TYJYfWpsEzC5kTf5TMC FxfLEDDWLvu4C1d/4Vp+aYdsUoU+tQfy/QO3H7MNm/sR4mRrwNgLn9CRbu8U+4ygiYAZ WSUmEG8WPOPXXIIZY29/X8DQQlijsFp3iQDipGo2Ox+ItuBD6GHLTgRXOC6qPClFsNJW L2kg== ARC-Authentication-Results: i=1; mx.google.com; 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 md14si11955512ejb.548.2020.09.16.11.26.33; Wed, 16 Sep 2020 11:26:56 -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; 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 S1727717AbgIPSZ7 (ORCPT + 99 others); Wed, 16 Sep 2020 14:25:59 -0400 Received: from foss.arm.com ([217.140.110.172]:35102 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbgIPSZl (ORCPT ); Wed, 16 Sep 2020 14:25:41 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 22A711476; Wed, 16 Sep 2020 04:07:12 -0700 (PDT) Received: from red-moon.arm.com (unknown [10.57.6.237]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 850D53F68F; Wed, 16 Sep 2020 04:07:09 -0700 (PDT) From: Lorenzo Pieralisi To: linux-kernel@vger.kernel.org Cc: Lorenzo Pieralisi , "David S. Miller" , linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bjorn Helgaas , Catalin Marinas , Will Deacon , Arnd Bergmann , George Cherian , Yang Yingliang Subject: [PATCH v2 2/3] sparc32: Move ioremap/iounmap declaration before asm-generic/io.h include Date: Wed, 16 Sep 2020 12:06:57 +0100 Message-Id: <93e2f23cda474a92a4708d4c50c9c359426a2162.1600254147.git.lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: References: <20200915093203.16934-1-lorenzo.pieralisi@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the ioremap/iounmap declaration before asm-generic/io.h is included so that it is visible within it. Signed-off-by: Lorenzo Pieralisi Cc: "David S. Miller" --- arch/sparc/include/asm/io_32.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/sparc/include/asm/io_32.h b/arch/sparc/include/asm/io_32.h index 8179958e3ce1..549f0a72280d 100644 --- a/arch/sparc/include/asm/io_32.h +++ b/arch/sparc/include/asm/io_32.h @@ -11,6 +11,13 @@ #define memcpy_fromio(d,s,sz) _memcpy_fromio(d,s,sz) #define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz) +/* + * Bus number may be embedded in the higher bits of the physical address. + * This is why we have no bus number argument to ioremap(). + */ +void __iomem *ioremap(phys_addr_t offset, size_t size); +void iounmap(volatile void __iomem *addr); + #include static inline void _memset_io(volatile void __iomem *dst, @@ -121,12 +128,6 @@ static inline void sbus_memcpy_toio(volatile void __iomem *dst, } } -/* - * Bus number may be embedded in the higher bits of the physical address. - * This is why we have no bus number argument to ioremap(). - */ -void __iomem *ioremap(phys_addr_t offset, size_t size); -void iounmap(volatile void __iomem *addr); /* Create a virtual mapping cookie for an IO port range */ void __iomem *ioport_map(unsigned long port, unsigned int nr); void ioport_unmap(void __iomem *); -- 2.26.1