Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp837374pxa; Wed, 5 Aug 2020 14:08:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG9WMzfzzpuy/hMwUIs7BS0BG5PnoDYVRkr4TB5ad/xBWommjR6CYEW2+M1g1hk7T1Lqf6 X-Received: by 2002:a17:906:ce39:: with SMTP id sd25mr1294305ejb.80.1596661696987; Wed, 05 Aug 2020 14:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596661696; cv=none; d=google.com; s=arc-20160816; b=U38ggtBsq6qOrZ248PNQAmlog3AT+fdhH9UxJTTBDvXim9NlxTEJhGk+lq2/IKzdfo DZ9xE1aF9TTx0WwgWrp5qGi93S4zgZxTYeIhd02l9IFsEq4FqMQd+obr5HqMB9QZ41Ok K9sgefBAjfK0x2mrmB1/GYt8LlXBJEsUOSl63fDZHV32iU0qf4Zml7J97ZVmTB+N7PNA lAJfs5EK69b2dbPVgWAFWpXt5uBxdrjJc2v8oEaAny9n5OMV2504OGy1BNnrJkXctvva E4fYkhkMtSzCrgXCzyDKRQFRSgF7r0QFOZ/p2EDyDPYcc4/rkLZSffLa9wwPBfiizkr6 Mkdg== 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 :dkim-signature; bh=XjPMge3KfxxLUFGF6krRbz5lxz5gIyPgeCzTjsMTkRY=; b=kcWapxMFAR5VfgkSaEDG3KQcLuZ8mfXW5kxdRn4+jUvy8e42dphqid4F11iV6V06hu IYD0PYuaJxonbaV8tMiLa6wNyyy2z6J0Yaof/gnWdS6+6bz+3vrfHlwzU9UBT77uOJrm EYbzbziZxN5nvpE/LIVEfrOx4JL6LYQgzA8n2usbFRm7135NiyGeMjRsgJsSOh8mJ81D zKbY20VEfxZLKWEnkrXpJs8elb4eTMswngu+BN8y4ywG8KJXVOSjvDaouX4DncjHJPOz RWt0wrNR19zum1Q4BpsSnFwB0msRJ7onGRoKE2Uv8LrOKl19YYdSm7kiWc7UrvY+Dimx OHoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LMExMwmk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm7si1950281edb.342.2020.08.05.14.07.54; Wed, 05 Aug 2020 14:08:16 -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=pass header.i=@gmail.com header.s=20161025 header.b=LMExMwmk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726305AbgHEVHo (ORCPT + 99 others); Wed, 5 Aug 2020 17:07:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725139AbgHEVHn (ORCPT ); Wed, 5 Aug 2020 17:07:43 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB3A2C061575 for ; Wed, 5 Aug 2020 14:07:43 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id w17so26201457ply.11 for ; Wed, 05 Aug 2020 14:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XjPMge3KfxxLUFGF6krRbz5lxz5gIyPgeCzTjsMTkRY=; b=LMExMwmkOQ+yWr/ZnrykNf+jrL5XbVkPC8tXC7ob1BiPacIs5t8FHZEB6NrHZGsbsZ IReHdgOJGQILHeiU6iybOKhILw7PJcSwtKFTV0KjL2QmwfhI9jSTeFVr+XAG2c67Iw9Z lFdOskP9jQ31Z00i8iRgG1wCepszYnE6VZMFCkBEsuWsCUihDLCthJPFQCJqIukXRaQt gg0IS6HjPdpy6Aj0r+/5/Q1sFdw3Xlww5Lbq4/eLoCultdQIjYgFRwEJYdD35v1SQ2Qi C3Imwh9vscQZ/SgBvKunR9hVJ57rcqe5gj1O3NFtM2GgNWgFLRHcuB0VWcFSWcs0EVUI fTlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XjPMge3KfxxLUFGF6krRbz5lxz5gIyPgeCzTjsMTkRY=; b=sTNsDOQXi8hok7gFZEff9DGJVmeQM5eg3c+9FBmWWt53e9y3UK3vw6lqaasSvH+PCz xopLO1mbOc7vSUckBWjBCLgDSPDtyGkiBWQgRQwiyk6H0VJxFFOx4dhXvCidMVtnpFOp enh3tQlgwvl26FVx6gzADHS8F7I75B0Q0XzSAY9UOCzZCGIgVsaZfzzCr1GIHZP/Ney2 Yjy1a8vPcsVXRwP909AtUYHKo6N3LL3megE0t/RmszudPCdiaL9IkRQdJzX2iQaakiih NCMGlppCebBXNtkyub0lVQTQzmOrh8fFcqbgf+rxyEBwn9IIqgxwuo1sv5B10K8lgSoT LiSw== X-Gm-Message-State: AOAM530e6oOKt72XLFNB0aHs87R7t8H0Nn6C9GSN26jyk0zerPGzYoJp /MnsdpAkBMn8NVwlRKePoPuYcNwt X-Received: by 2002:a17:90a:4e8f:: with SMTP id o15mr4745779pjh.220.1596661662968; Wed, 05 Aug 2020 14:07:42 -0700 (PDT) Received: from localhost (g223.115-65-55.ppp.wakwak.ne.jp. [115.65.55.223]) by smtp.gmail.com with ESMTPSA id r15sm5064463pfq.189.2020.08.05.14.07.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 14:07:42 -0700 (PDT) From: Stafford Horne To: LKML Cc: Stafford Horne , Jonas Bonn , Stefan Kristiansson , Mike Rapoport , Andrew Morton , Arnd Bergmann , Palmer Dabbelt , openrisc@lists.librecores.org Subject: [PATCH v2 1/6] openrisc: io: Fixup defines and move include to the end Date: Thu, 6 Aug 2020 06:07:20 +0900 Message-Id: <20200805210725.310301-2-shorne@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200805210725.310301-1-shorne@gmail.com> References: <20200805210725.310301-1-shorne@gmail.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 This didn't seem to cause any issues, but while working on fixing up sparse annotations for OpenRISC I noticed this. This patch moves the include of asm-generic/io.h to the end of the file. Also, we add defines of ioremap and iounmap, that way we don't get duplicate definitions from asm-generic/io.h. Signed-off-by: Stafford Horne --- Changes since v1: - Add linux/types.h include following report from kbuild arch/openrisc/include/asm/io.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/openrisc/include/asm/io.h b/arch/openrisc/include/asm/io.h index db02fb2077d9..7d6b4a77b379 100644 --- a/arch/openrisc/include/asm/io.h +++ b/arch/openrisc/include/asm/io.h @@ -14,6 +14,8 @@ #ifndef __ASM_OPENRISC_IO_H #define __ASM_OPENRISC_IO_H +#include + /* * PCI: can we really do 0 here if we have no port IO? */ @@ -25,9 +27,12 @@ #define PIO_OFFSET 0 #define PIO_MASK 0 -#include - +#define ioremap ioremap void __iomem *ioremap(phys_addr_t offset, unsigned long size); + +#define iounmap iounmap extern void iounmap(void *addr); +#include + #endif -- 2.26.2