Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1146030ybh; Thu, 23 Jul 2020 01:21:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbgMPatia1matZ1NnbYeCrAx5NbcJhMsIAo5a2ERdNWnAf7SBw5k1XTjg6UrKGiu7r5CCn X-Received: by 2002:a17:906:2bc7:: with SMTP id n7mr3401893ejg.96.1595492475986; Thu, 23 Jul 2020 01:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595492475; cv=none; d=google.com; s=arc-20160816; b=j4W5EjRnuXJdLkBCg1sbkcLqBoEbkxa0jXReMfb3shh5WQVtN5fz0JWMgMH1LL2bSr FeBuhQMkz7G17qWFFtyx1jeFv5mub+X0ikNo7P3HwjqBkXVD6/V7bgJOexrs3/LGBTAO bhh0esBAm6gjaJiLK1wIv+C98S0SvBz9We5Asko2IKhFqNKpW7t+ytkBajnKNkSJOXTe FZnFXagzpqd23SMmCLJHMbff85I94cPM3PVTfZIEfpUnJW7fzmV8rK94SG3OK319yUpL BlPQ3R0slpyHp4fHzIN+oWi5NYkbw5RinPlpiqxzPWyl+PDV3D9Mubtc1abm5gf50enz eNDg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0IUbju6FY6MvKVcZVorUzhYQnAbWQgWaj6Vl+9Vm2UQ=; b=HhjuVHiXzK1xxP9TBsH17JbYMdphPdI6pYvcXgVY232RkDrPlae7KfR7K0tHPEf2eP ntC6oZY3YvaWlIl6g4UO6GYX4FiYsue6J3A6r3Ww4MpeKSv95qwPae7relOA+Ka5ZBXj vK3P3Sqjw2aNc9SsRgV5rSrfOzspQzE7ZxpsTHttruBfd82oPFYyMNYIzVLdJ2pViPra 8KxKanUpm7rsV01k2WW0nU5Be4QP6WPfVsBAC7hqsXWN1q0nLcOE5A6byQRFTBlKYeSr +8n3bPlD0RCDlyzSF5WMFxdtvro7xb8epg4O1vl40Rg01dO839fPDbdc5tHjEKRdzhZ1 +Mwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z1MEhJ4b; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si1463837eds.305.2020.07.23.01.20.53; Thu, 23 Jul 2020 01:21:15 -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=@kernel.org header.s=default header.b=Z1MEhJ4b; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726304AbgGWIUg (ORCPT + 99 others); Thu, 23 Jul 2020 04:20:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:55954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726092AbgGWIUg (ORCPT ); Thu, 23 Jul 2020 04:20:36 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71C97206E3; Thu, 23 Jul 2020 08:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595492436; bh=EaBKgkLVab34uO4dsoqXLnPdlRXSsluTsnqow7VZchE=; h=From:To:Cc:Subject:Date:From; b=Z1MEhJ4bQgkvAUr6y16w81kHSJmgHmA6HbXKHjoAIODeLC0/kSWI+X688OQm+afPa kmgxZhHGOOQXioIAvgVtivokLsuq7owOOk5T+OmsVuhxxuMWPrLV0xgrDcm8gISY0r GZgGEdwFzriRGrjdwGRDSU10GjB9GkQqvCuvFHs4= From: Krzysztof Kozlowski To: Yoshinori Sato , Rich Felker , Krzysztof Kozlowski , Kuninori Morimoto , Andrew Morton , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven Subject: [PATCH] sh: clk: Fix assignment from incompatible pointer type for ioreadX() Date: Thu, 23 Jul 2020 10:20:17 +0200 Message-Id: <20200723082017.24053-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ioreadX() helpers accept now pointer to const memory so declaration of read function needs updating. This fixes build errors like: drivers/sh/clk/cpg.c: In function ‘sh_clk_mstp_enable’: drivers/sh/clk/cpg.c:49:9: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] read = ioread8; Cc: Geert Uytterhoeven Cc: Kuninori Morimoto Signed-off-by: Krzysztof Kozlowski --- Dear Andrew, This was part of my v3 patchset commit 9ab7fb303cc1 ("iomap: Constify ioreadX() iomem argument (as in generic implementation)") but I think it was skipped when applying to your tree. Maybe because it depends on commit 58c4d8659186 ("sh: clkfwk: remove r8/r16/r32") which landed later? Anyway it should go through your tree, I think. --- drivers/sh/clk/cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c index a5cacfe24a42..fd72d9088bdc 100644 --- a/drivers/sh/clk/cpg.c +++ b/drivers/sh/clk/cpg.c @@ -40,7 +40,7 @@ static int sh_clk_mstp_enable(struct clk *clk) { sh_clk_write(sh_clk_read(clk) & ~(1 << clk->enable_bit), clk); if (clk->status_reg) { - unsigned int (*read)(void __iomem *addr); + unsigned int (*read)(const void __iomem *addr); int i; void __iomem *mapped_status = (phys_addr_t)clk->status_reg - (phys_addr_t)clk->enable_reg + clk->mapped_reg; -- 2.17.1