Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp23536pxa; Mon, 3 Aug 2020 21:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJUWaKvDXng/Z/JuhDW9PMToagzMFAgBT96Uj2H9tIpd4uaDZlVUPDSHHjbCIlZBx8fwm5 X-Received: by 2002:a17:906:68b:: with SMTP id u11mr20732783ejb.143.1596515091948; Mon, 03 Aug 2020 21:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596515091; cv=none; d=google.com; s=arc-20160816; b=oi6LX1EIzSpSE/lHDMbn4QycNNmzWIsVBKmntG5BWdCuzVUfqRTD2sWfU5JIVz9O8m qKxFu3p7ALBfx8cgxNQDd7JkBEx2eA9GSUvnDz5vAY7vxtzQzZiv+iJ9J2wD9M2tmDWl 3Ln0brZuAjeC2nkD6stFmNJRwpcz8PE8CrxEtbqITBADARzYewephvv0aaHealOFMnsK L3yysE4CZX720XUGgyKLds2LyB3TJ9c3HmpPztaZrhcoQLDHyh+q/H4fwp/U2HgWqrdA kSCafWd3Vcj3/+z6/rDItnmq96yn7ncNk/GfMruACF36WVvGTQ26/28QOXpz1ShEtzjX y4Bg== 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=cDmLjdzKLB0Osgf6ewGVRDSUgUng436lOPq0tCkDdNg=; b=SdqvOfFbiIj8kpeXVMVyBOFa+Kb8TBArmp3XvQwXeUzCN0Ev9RxYD3wDw85YSGU8DL BT8UREvojsiIgmF66GC9NrdhrgX7nW1abFp+0V+WdOlAPC+DZ11GJT8Z9wTIk//iQMSS ZQV+qzBvzeQKCbyiRvlpPFDkruSLgdJr0ZbHIbi0L0Z/DyG90Anmy4lYZZxNCZv8HoI1 v146RZ/Bs7AxZ6wE0HMu58AyLVX1H5rMbn+TGTTqxDtdbesv+RUnA1nyn8wBTUKn9vPs q7kQ3VllxsCXkLPptRLAvvbkC265Quu+E9iR75TMF3tjqjNp5jNxR/KtV8I+TYyFAV6y ebNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D3fJQVeI; 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 u16si12381544eje.469.2020.08.03.21.24.29; Mon, 03 Aug 2020 21:24:51 -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=D3fJQVeI; 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 S1729642AbgHDEYM (ORCPT + 99 others); Tue, 4 Aug 2020 00:24:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbgHDEYM (ORCPT ); Tue, 4 Aug 2020 00:24:12 -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 4734FC06174A for ; Mon, 3 Aug 2020 21:24:12 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id g19so9585806plq.0 for ; Mon, 03 Aug 2020 21:24:12 -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=cDmLjdzKLB0Osgf6ewGVRDSUgUng436lOPq0tCkDdNg=; b=D3fJQVeIEd4R3yAQ6SOOh0aLBpHPeIFCZeNxoOPkIaX0RJKnnfwsRTsaYh7jV4wB1F 67tpd6pr/2lzwWZCHHGe4k4eUb+nm3LqgfNtBb8tYIz0K1rVdCeoZvlbbG+8u5D1XLkL iUwGfQscXVDJB+xXV84kZrlcOneyVn3Q/x21khruEzeGQt2D1sJGP5UuYDyjXDhO2BIc 4Hr1NunmBuWXSgqQab2vKyFwuB9T6aY0RfZzKl3SoIjpLefYmqJWQOZG98kocG+BTV0K 1aNkqCbBKj8OvQViPyPSg3DlR7CVizuJjrTSoStfwQWlQDKj7fBY/hsAE/3AQPbzbH5u hgNA== 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=cDmLjdzKLB0Osgf6ewGVRDSUgUng436lOPq0tCkDdNg=; b=Mx4hoKcG/dtimD+7kRlEltfVAnWi1aIZXmzR5cBSz0F83mNfZ2a3bEG2rODnek2Ktd VP+tr2AjkDT67X8xu2ZsU1TIRr6cwh3I+D8m7h2FlM34akQ2f00Gm1d0DEghaVNiEVKE IM0q3m+AXMa9MqF+PDSCXtudAhe1zf7zrpHwCgJ2Ah2bRcdO1MOK9n7rAgmMbdLU/a4c 5NFuOTSKtMq0evQ9Wjeyfxk7VmeFuCEL0djFhWu/48zuzhxSid7urvJjvp8m8mOTXcrE C5BbYMV9jJ+yAakcxxAvbk6uTr/0KdsH64SsUwFbXMkt3+oDRAWV1dFBWc/APduUUtHD mqiw== X-Gm-Message-State: AOAM533qoAXnPZr0BM/XyYP91VVw9yTgiruKkkxiZ5dMA83reKeFywqD ao3He6zmLgUO0nQC0/b6iwadjlqU X-Received: by 2002:a17:90a:d78f:: with SMTP id z15mr2570512pju.9.1596515051456; Mon, 03 Aug 2020 21:24:11 -0700 (PDT) Received: from localhost (g223.115-65-55.ppp.wakwak.ne.jp. [115.65.55.223]) by smtp.gmail.com with ESMTPSA id w64sm4864734pfw.18.2020.08.03.21.24.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 21:24:10 -0700 (PDT) From: Stafford Horne To: LKML Cc: Stafford Horne , Jonas Bonn , Stefan Kristiansson , Andrew Morton , Mike Rapoport , Palmer Dabbelt , Arnd Bergmann , openrisc@lists.librecores.org Subject: [PATCH 1/6] openrisc: io: Fixup defines and move include to the end Date: Tue, 4 Aug 2020 13:23:49 +0900 Message-Id: <20200804042354.3930694-2-shorne@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200804042354.3930694-1-shorne@gmail.com> References: <20200804042354.3930694-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 --- arch/openrisc/include/asm/io.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/openrisc/include/asm/io.h b/arch/openrisc/include/asm/io.h index db02fb2077d9..ef985540b674 100644 --- a/arch/openrisc/include/asm/io.h +++ b/arch/openrisc/include/asm/io.h @@ -25,9 +25,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