Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8899489pxu; Mon, 28 Dec 2020 00:36:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyRhuLKXxmGiCMW6/GzAAud1kL1i4CWc20flSc8yjykThMlfm6HKV0BeZzHBe/Sw+a9e6J X-Received: by 2002:a17:906:ce51:: with SMTP id se17mr40354883ejb.314.1609144592417; Mon, 28 Dec 2020 00:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609144592; cv=none; d=google.com; s=arc-20160816; b=H8EVvCN5qSzGJt1mTOViSddN0Q3uw1AnEAm1cD/CZd+XRU/qOl41vyfwtiDXxs1N2K RTQzQqoMRjlxIy3Rp3cFyM5+dUU6+0BdGaOQst+FeWydYYGXwqLQRlLrpTpKVSCXkvol C3PVbvLEXFcT2Ef1eIbM1FWnYr0TGssi7pXbcq0xH/rZYz+UYBN76bRzaVUBdp0Wh0HY HDJuQlBD2iQND7wTWIcPdKK+tO72+GKvqcSAGaCgFBKAG3gOLei+5lLFBfPe/ET2riWG Q7dJzCAtAnGyGa4sMl71irnV/fhJkbymugUbxc3yTNNRaABJS1nzUN0PvM1ojfG75UFA 6cwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=seJfRoFuu5gKF4QbQYxItFoxWtp+Bn2Qn8Ohtxfdsi4=; b=hhXXVpJwcJ5fwJD7+0DcQtEAsyjDitj5qZAgoi+2uVvFcSyAkZ4jhHi6tW9cYG2HqG 63ludrPLkiQ5T8nenEy+h95Ny0Xuf6ljd3OCks9m1VYyjE392ty4NX8pk7w2kDVV3zGW 5WvB93W3f2mIClhSM5eS9tlWPlSaOfVjLd03eQfIwSOhMWQe1zAcluxXHjJfNKI50pe5 otky1usUHn4ICTll1bQJNpMtfd8euNt3ttwAqSsmrwfv2A41lpvhN1J9kx1iIW2410s6 d0GOlbxR4zN4TvNtOLdJpWYP+6HgUKQIa9QAj2HRnFr7Z3wKb74p0kd55RzBtlEAKIrQ RNNg== 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 e22si12311385edu.9.2020.12.28.00.36.10; Mon, 28 Dec 2020 00:36:32 -0800 (PST) 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 S1726429AbgL1IeQ (ORCPT + 99 others); Mon, 28 Dec 2020 03:34:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgL1IeQ (ORCPT ); Mon, 28 Dec 2020 03:34:16 -0500 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B847AC061794 for ; Mon, 28 Dec 2020 00:33:35 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by laurent.telenet-ops.be with bizsmtp id 9kZX2400N4C55Sk01kZXcV; Mon, 28 Dec 2020 09:33:32 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ktny7-000fco-04; Mon, 28 Dec 2020 09:33:31 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ktny6-00G2mS-DV; Mon, 28 Dec 2020 09:33:30 +0100 From: Geert Uytterhoeven To: Jonas Bonn , Stefan Kristiansson , Stafford Horne Cc: openrisc@lists.librecores.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , kernel test robot Subject: [PATCH] openrisc: io: Add missing __iomem annotation to iounmap() Date: Mon, 28 Dec 2020 09:33:28 +0100 Message-Id: <20201228083328.3823431-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With C=1: drivers/soc/renesas/rmobile-sysc.c:330:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *[assigned] base @@ drivers/soc/renesas/rmobile-sysc.c:330:33: sparse: expected void *addr drivers/soc/renesas/rmobile-sysc.c:330:33: sparse: got void [noderef] __iomem *[assigned] base Fix this by adding the missing __iomem annotation to iounmap(). Reported-by: kernel test robot Signed-off-by: Geert Uytterhoeven --- arch/openrisc/include/asm/io.h | 2 +- arch/openrisc/mm/ioremap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/openrisc/include/asm/io.h b/arch/openrisc/include/asm/io.h index 7d6b4a77b379d8e2..c298061c70a7ee2e 100644 --- a/arch/openrisc/include/asm/io.h +++ b/arch/openrisc/include/asm/io.h @@ -31,7 +31,7 @@ void __iomem *ioremap(phys_addr_t offset, unsigned long size); #define iounmap iounmap -extern void iounmap(void *addr); +extern void iounmap(void __iomem *addr); #include diff --git a/arch/openrisc/mm/ioremap.c b/arch/openrisc/mm/ioremap.c index a978590d802d0c3b..9595be51b100c40e 100644 --- a/arch/openrisc/mm/ioremap.c +++ b/arch/openrisc/mm/ioremap.c @@ -78,7 +78,7 @@ void __iomem *__ref ioremap(phys_addr_t addr, unsigned long size) } EXPORT_SYMBOL(ioremap); -void iounmap(void *addr) +void iounmap(void __iomem *addr) { /* If the page is from the fixmap pool then we just clear out * the fixmap mapping. -- 2.25.1