From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAB34C43461 for ; Tue, 15 Sep 2020 23:04:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9F06120770 for ; Tue, 15 Sep 2020 23:04:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727289AbgIOXEt (ORCPT ); Tue, 15 Sep 2020 19:04:49 -0400 Received: from foss.arm.com ([217.140.110.172]:37454 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbgIOOzE (ORCPT ); Tue, 15 Sep 2020 10:55:04 -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 831F131B; Tue, 15 Sep 2020 07:54:56 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F161B3F68F; Tue, 15 Sep 2020 07:54:54 -0700 (PDT) Date: Tue, 15 Sep 2020 15:54:48 +0100 From: Lorenzo Pieralisi To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, "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: Re: [PATCH 1/2] sparc32: Move ioremap/iounmap declaration before asm-generic/io.h include Message-ID: <20200915145448.GA6316@e121166-lin.cambridge.arm.com> References: <20200915093203.16934-1-lorenzo.pieralisi@arm.com> <20200915093203.16934-2-lorenzo.pieralisi@arm.com> <20200915141452.GA19202@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915141452.GA19202@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-arch-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Tue, Sep 15, 2020 at 03:14:52PM +0100, Christoph Hellwig wrote: > > 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 > > No need for an __KERNEL__ in non-uapi headers. Sure, just kept the same preproc guard as current code, will add a patch to remove the guard first before this one then. Thanks, Lorenzo