Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2796150pxk; Tue, 15 Sep 2020 02:33:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPDmIfj7kXj91fzbeGlmeE21ToqaAelW/h01bXLic1hoDyPnuP+r8eu/xaRlGJYRlv6C79 X-Received: by 2002:aa7:ca17:: with SMTP id y23mr22219713eds.245.1600162424568; Tue, 15 Sep 2020 02:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600162424; cv=none; d=google.com; s=arc-20160816; b=dOxphwZrGKcb7Sc4rp5/ergye0HAHEbK0itHxA9wHAjkRZuDcnVBECNBc+hdmkxxOL bAi+EMl2AaJy049TLWnPclhLyuXxoVlD0f1Ia2nhW9OI9hN9Ca0Kp29gGIFxr5KwuWzB YxEyS2cNrK8u+an2Lxl2hlqvDPGwDwEmDbprPlguohqJtB2FUcc0g5BzUNnQN7q7doyI SVWRDtW2KxJLjJqWs4kxg7YH68nbJu9C17GDdtr7TAWk2f8fIajewj8htDI45dbeisTx xIGxj57B5EuFVb/Fhq66y3O3JR5qqtK0pImwKAhHblETPUi+NhpMqRHU0BkN7xxiXroN to4w== 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=XU9rREA4NXx0dYEFww7zac9DSqfsqUFq2hetXXbInQU=; b=SloKMxH/ETjfxjF+xT9tSzyj5BlqO1FJgRVumeyo7IluYcQnfPfQzIX1DpqOxRkHcg 3u/srEkQmlbndWNBQNX4yfAZbKLfgdAiKINNpSCP8Wae/m6XrhEwyUdCyfVvhv/4gXpT mgjILCQP/elZL1vgkLWajYrmKAIhsDhpBcRyIma7YT3neKtDbXMiMD3wpLnq+nU/FClQ x3kaSuycS40HKH4S82M9n22dMGsDlcyoXiqA01X2A6ba/snRGW1wmHwidVGC8YJTFnvg D3mw40JE3JPYhF2BaT7mYe8N/2hpW6F4JzgYuQQp88BIhA8xThQ30CAUYCmN6oWs9AAO dJGg== 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 dn20si10964085ejc.342.2020.09.15.02.33.22; Tue, 15 Sep 2020 02:33:44 -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 S1726399AbgIOJcW (ORCPT + 99 others); Tue, 15 Sep 2020 05:32:22 -0400 Received: from foss.arm.com ([217.140.110.172]:59054 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbgIOJcQ (ORCPT ); Tue, 15 Sep 2020 05:32:16 -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 9395F113E; Tue, 15 Sep 2020 02:32:15 -0700 (PDT) Received: from red-moon.arm.com (unknown [10.57.14.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E22413F68F; Tue, 15 Sep 2020 02:32:13 -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 1/2] sparc32: Move ioremap/iounmap declaration before asm-generic/io.h include Date: Tue, 15 Sep 2020 10:32:02 +0100 Message-Id: <20200915093203.16934-2-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200915093203.16934-1-lorenzo.pieralisi@arm.com> 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 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/sparc/include/asm/io_32.h b/arch/sparc/include/asm/io_32.h index 9a52d9506f80..042201c79ad1 100644 --- a/arch/sparc/include/asm/io_32.h +++ b/arch/sparc/include/asm/io_32.h @@ -11,6 +11,16 @@ #define memcpy_fromio(d,s,sz) _memcpy_fromio(d,s,sz) #define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz) +#ifdef __KERNEL__ + +/* + * 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); +#endif + #include static inline void _memset_io(volatile void __iomem *dst, @@ -123,12 +133,6 @@ static inline void sbus_memcpy_toio(volatile void __iomem *dst, #ifdef __KERNEL__ -/* - * 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