Received: by 2002:a4f:b056:0:0:0:0:0 with SMTP id m22csp2665822ivi; Tue, 15 Sep 2020 16:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUpCHiDbCVTW2kajKeIUd+efS0aNsOMQmbSXzIKOpT+BD70xman6GcZD6kUH5tQHzoK6eM X-Received: by 2002:a17:906:170e:: with SMTP id c14mr11238704eje.275.1600211304854; Tue, 15 Sep 2020 16:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600211304; cv=none; d=google.com; s=arc-20160816; b=c39lETVuEkR7C6AiMTuWtmN8HoWD8mndSyuinTOmHQY4GzvwzMm84YCF8XwRZAdAhD jkYp7zy/hvZVaP9o+IWBRe9Q2V+g5I/CY4C7JRF3P6IHRoijqJ5Wu4+arUrIfIxpRGV6 ijNND5jEEEbfksziSFt4ChPQtA8sNTukgjkbFx9BC2J9x5D5+esCRei046sonEOhlGTX jL5JVK1AtElZcxlKyS1X7cIrxlC2OB9rrosOc5IX2gIA3DTLqIPUoN5gZ8gJZxkBTqKG 4FjwflSsEZGP8jezJ25WB3d4Tbtur3iyeuvUO2VBsKmvxz7Hv7bOashilhskRXU3bzMV xNXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IC6CjLBnIsvTDAIGQrwAAWQ5lz2P/e+ux1Ud+7NmcBk=; b=d6reNBG+YbuI+yKunyFz6+qn58hfwv1q4C4luekFcOQMpePjSps+wfiUvROsiZGxlF p91n95razARn6ZWI1U6nwE+UZBbPkqH97r6HvFpJFPpk95lrZwzuvNQR6v9sfrq74Onj Y19k4bcfMW3od9mkLKgM0BxZQkUyPbKZT5NwL/UvbWHyxNOUP1Aln77DCgEiSnC5MiLb kv1tTPjoT3MkBiAItDDFrOj0RSAHeQ2iI10ickdEGUcSj74sIhzj0gtQw4l0LWGiHd5p 96THPyjuwwEw8m/HBrYJMYNh0q1KhzgKK8T0m8HEPmkStqtA6NfpssIt308vg/YIdy5n eiIA== 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 h23si10483882ejd.576.2020.09.15.16.08.02; Tue, 15 Sep 2020 16:08:24 -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 S1727486AbgIOXFI (ORCPT + 99 others); Tue, 15 Sep 2020 19:05:08 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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