Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp39085pxk; Tue, 15 Sep 2020 17:07:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYsc/kvFyIWwdvghmNyGrPWLJTZG9My3zpuuK9rq4e77P7bkqIXjtj1ZkUVa3KCwSgbYZd X-Received: by 2002:a05:6402:615:: with SMTP id n21mr23999365edv.59.1600214864191; Tue, 15 Sep 2020 17:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600214864; cv=none; d=google.com; s=arc-20160816; b=KECoV0XDSIUStLs7xFvz/9+gcvsgVghyUMipEA9SRLtrVLi37fsDJDVYzKmgMn2BZF hW41IofbpUaZujFhmZxsqTaktv01pSwrSKfXKrDpPMRk47XfxXQ+1Ho2BS0sRU5etPo4 J5+brD6IJ2OzRFQA9qn/ZV9TxIrDfizFKPPv8p//x8HsIigFNrbOEDRxCPmbiKlUv+qK jPValhGzNFE2/2vc5UKGcndVG03C/kVWrBL45yFAJ03t5V1bMsCIQUpZDHUe8j++YGYO DbgSbetEfdeNX5POdEy+IcBqKeWP2gSyCXklBvQ6H5CBhSDnZyoMU5Y1aoYIBXjMzZ4F hOkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VAFP2+lHvsV1SPJ5crPA3cULhiQoRhi403/H/7JF2+8=; b=ZsgpgA0kShDwqeS4FsmhbRv61PK0efkOc/rqvcF6quJkJ6QAGy8V4MhoeECBXLjgi0 eNYA0OZTAawqpasRPpxL7LiRf68zCGRkXtPRw7uVVmiy2ueLZYw9+Wncq5e8+p0e6w++ fGhEjTqZoRaJk3TnAKiFezVovf4REPSz/f2MTorz4g8X/gxMyDV/ACLbNnVyTWu8NI1Q vejT9kUFaavraFuHP/bWgiWX8JLE05t0mmt2S6Kv8I66miT8lVEDt5aQDP6I8VM/d1MA FEr350Kg+4Yxa4LDx2ckCXrP7PYMzywH63v4l7HAq2O/WhIED99+CoQ7gjJAw0gIseOF /2zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=QR2hMiot; 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 r8si10898701edw.288.2020.09.15.17.07.22; Tue, 15 Sep 2020 17:07: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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=QR2hMiot; 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 S1727410AbgIPAGx (ORCPT + 99 others); Tue, 15 Sep 2020 20:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbgIOO2m (ORCPT ); Tue, 15 Sep 2020 10:28:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A8BCC061223; Tue, 15 Sep 2020 07:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VAFP2+lHvsV1SPJ5crPA3cULhiQoRhi403/H/7JF2+8=; b=QR2hMiotY714HixEB18KO4UMkA dsT/mYwU5lOtboVpU9HPkIUwXQl1fjqq2TkMtIp/eolnn0tdunOBGHvtS2J+tqZECpTXEZYXP9qo+ dv4cJ2UfqvDb7FW3A1dKdum8o+v4hovMfAcqknVms0cyPD1S6VhFKHeHHqifn124i0TEPhEO1GVWj jEZnfquFDd97jHMreoDhubWvfLR1Zp3VEXbi06WxXW6OempRGF5ubBTujfEiVJWQL7/WzBHe36+8r mnN+YhqrYxB//1UNxJQtxXjIxF5R0i2hBqTumFxM4cNGpLUWEdjLVPMb8ZpQRq86LV4btHypzNp5o OSs+c7Gw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIBjQ-00051X-Ac; Tue, 15 Sep 2020 14:14:52 +0000 Date: Tue, 15 Sep 2020 15:14:52 +0100 From: Christoph Hellwig To: Lorenzo Pieralisi 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: <20200915141452.GA19202@infradead.org> References: <20200915093203.16934-1-lorenzo.pieralisi@arm.com> <20200915093203.16934-2-lorenzo.pieralisi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915093203.16934-2-lorenzo.pieralisi@arm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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.