Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3270941pxa; Sat, 8 Aug 2020 16:07:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw5Vgrs7B3MnVaWn3tqwLu8QnrYEKXK5bltfXLG5RJ289o1PUCsBWsumzoT3k60hCiQoEB X-Received: by 2002:a17:906:8d8:: with SMTP id o24mr15222544eje.384.1596928077642; Sat, 08 Aug 2020 16:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596928077; cv=none; d=google.com; s=arc-20160816; b=PDGiXmu2NqI9QzipNp14Gym8gM8WtwM4SkobdsOh9S57iyRVJCAJesK6AxfkENXDm9 Ltw8aF1JxN6BWvTCexZmNUg52x13oavI6gr9h8eKtDwaD1uejGiBIIJyMAtHsYSVaXTd i4EMXelWHJbj/khmChowu4rAT6r/LUfV3zfJ7NecH76r7FOknSxEXOi0vEuF3879kLNW Vb+e56vNyFLdbWRGIENSpWUzH4wCHWhStbJ0fw3nqZixLOS8zIR08iR6qr/dKpAZdkjS uLXnUQuEESoLFHy+UZ5+XHrtGB0c8P43wlHfjRNswYmYC+09+HWjuInBWTtbrV6+c6od tvow== 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=emiTgggaIF+BQrqHX2Ti87z5PsPZiDji49xQXoUlCVA=; b=FLdMjz5qmuOpJUhopWWIBWPRF7J/zA4L9nRgqrsUdHrS386fw9i8dO+Zs8HkArOAu4 PCqqSvz3nWw3TNuVWYIynZuXJ48uLu5THNt4V8nnzN748dpne09N+RI5d/mXHRBYSrjg Q7E+Dl6rY3mf/Ygc8tpuj8cHDkpH+Py6+I96K2hiK3KEnIULdFDDm0lkEI6xqhDMh46t CR+QYY6JiOmqW3nvJKgN7kDtD7sWrTIADtZVcY9UZBW6JpeNPOb2RNpIC9LgLToQd/Nw Z/yzzWtEVTAJNydOPOvTWqM47J8ed0y9Mb6JljoCuAryqJC3j7c6YHNRxGO9x48NchYL TWSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LoE/fjBS"; 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 u6si7931132edd.428.2020.08.08.16.07.35; Sat, 08 Aug 2020 16:07:57 -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="LoE/fjBS"; 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 S1726262AbgHHXHC (ORCPT + 99 others); Sat, 8 Aug 2020 19:07:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbgHHXHA (ORCPT ); Sat, 8 Aug 2020 19:07:00 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB1F7C061756 for ; Sat, 8 Aug 2020 16:07:00 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id u128so3096710pfb.6 for ; Sat, 08 Aug 2020 16:07:00 -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=emiTgggaIF+BQrqHX2Ti87z5PsPZiDji49xQXoUlCVA=; b=LoE/fjBSi9f+qG08SnhKBMIqj5SRCNf06QZHLO8LAHjwjeV3QfzjitC8SoIve96p8d 9mpz5ZfGO2qcYXm0rAMBYSJECHZcVksa+xs6tHM4l04EFKO/0BDSzScMxeygHhqnHzbX AXEwTvbdhNHHopLBXpgWeTRBFOSUP0uh2DQiUUgSjKMhl0syXgVvxkcYoTfjzoEKE2NK DXxtv/TjtV7FUCeGThWxxq1pA/eIMCNScbcwvxup1Y9MCUa8GnRcA+8IRufBSf9PlCrZ Xd38U0VJCb4hvZQXSwU2DOysRVfA6547D3G7t/QWwvHoJgwwisS1JgqF6mHYOSew7A0X aJDQ== 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=emiTgggaIF+BQrqHX2Ti87z5PsPZiDji49xQXoUlCVA=; b=WVhqtCKfJ5vs1kJQXVipwRsJxx1c+lewG7qKyMpxlvPSL28+OXBov4I6DAqhkN8Hcd TJgQEx3IQ6lek0y1ezDgI5V23oW+fai2Oa1UQanwABTDu3ZzhnWUzZRx581YfUw9twVt aTCe0TNQS8L9TNAFtvdcZesCVOGw6mi6GzoKqfzI2L7CpbIjHjK6eNMM5wV0vo1v3A2o IPunBZFz/qHapsygeiSDdiXGMdVsWUri74pjs2CrzDEf1374jo/pKyzK+4/nmCt/3LfN /Z6yQIrAiWfr1JsRVJPxHkJJL8pldfGZOKelkIh/rgt8ZNXDd1Koy2Ve/Sdh7BRU5CtQ FWSQ== X-Gm-Message-State: AOAM531aEp2wo2jfESAkdRTnWMSteErXqWhqeEZfF65L6e7cFgjpv1sN FPr9Ub0u4MX/QVS9sPe2sIKGlhy2 X-Received: by 2002:a63:b709:: with SMTP id t9mr16476983pgf.376.1596928020053; Sat, 08 Aug 2020 16:07:00 -0700 (PDT) Received: from localhost (g223.115-65-55.ppp.wakwak.ne.jp. [115.65.55.223]) by smtp.gmail.com with ESMTPSA id d24sm19470570pfq.72.2020.08.08.16.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Aug 2020 16:06:59 -0700 (PDT) From: Stafford Horne To: LKML Cc: Luc Van Oostenryck , Stafford Horne , Jonas Bonn , Stefan Kristiansson , Andrew Morton , Mike Rapoport , Arnd Bergmann , Palmer Dabbelt , openrisc@lists.librecores.org Subject: [PATCH v3 1/6] openrisc: io: Fixup defines and move include to the end Date: Sun, 9 Aug 2020 08:06:42 +0900 Message-Id: <20200808230647.833047-2-shorne@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200808230647.833047-1-shorne@gmail.com> References: <20200808230647.833047-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 v2: - none 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