Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1310798ybh; Thu, 23 Jul 2020 05:58:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqg3dEmI0o/t6GvZNv5EJEpKKScTj40vlm05/0B9XfDojLf/HvF+DZ9/d06mpqUcCQCFwJ X-Received: by 2002:a17:906:c78f:: with SMTP id cw15mr4131375ejb.58.1595509094362; Thu, 23 Jul 2020 05:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595509094; cv=none; d=google.com; s=arc-20160816; b=hwDHqPXlqn69H26OoXZXLWXrmyU/uuWHIdxu/eG6HyBgrz6FbXBUo+ZD6djODEKDZs Xyq/97He/VWRnBOHSXfXqW19EckD8HlEX6ZpyWdj3JsuTbLBId3CXk8fgVRrPknpecZC gsTWUWosOVv5HuYCGcTWrZfiE/iX6BSltDt8WskaB1uy+6KYKlolu7FVM1v/kw7GovD0 M+pnDeyM8uX8YFubNIcBmEFAlQTMvJduOvyr5v0KMLzqKC3+VJgRc5jZwLjE8/EjST0M eB2JvNJECKsYWt4QgH29MytxoVQfV9RpwCwn8L+Hk5L5VzCvihAr/rR7MHet8Tn5l6Yv aULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=e9LofUs8gAfR6XrMny4GZ85gpBoKqLeNU4Y7+2YVIZA=; b=YsizsIksUQOJw8RhTU0Eaf+1ARsITxGAujnVsBQC6ApB7yVB8ff4K6YR824V0fqcvB HWJJaozDnVOgJieN9AubXWqap/Ul06wAeHUhNaWMCalJhTzlDUu7KyobP+RcfFwPT2PJ EFvZs29dQ7YaEB9Y6u1O6QyxiTKmA52izklN3Ak9Pp/6gbrQjYnIC0uAB1Ld1z9hF/Bx Gh4vmZl5KwnO+Tl3knjFZtascOZZIkbjlW91mMBLZlGy1GdN3oZpmkvdwMadx/ZSYO/w imcZ1mfEs406T8b1sLYAxm/Te2wOHFmOuGh24eRT29uM8F/2FSWwD0Ouuoy47AMe8orA 7rhQ== 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; 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 by17si2239484edb.369.2020.07.23.05.57.48; Thu, 23 Jul 2020 05:58:14 -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; 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 S1728134AbgGWM5p (ORCPT + 99 others); Thu, 23 Jul 2020 08:57:45 -0400 Received: from mail-ej1-f66.google.com ([209.85.218.66]:38893 "EHLO mail-ej1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbgGWM5p (ORCPT ); Thu, 23 Jul 2020 08:57:45 -0400 Received: by mail-ej1-f66.google.com with SMTP id br7so6281150ejb.5; Thu, 23 Jul 2020 05:57:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=e9LofUs8gAfR6XrMny4GZ85gpBoKqLeNU4Y7+2YVIZA=; b=X3DAUyGb+ou9it2EVVsbLjXPEGZ5Ksy+EKFLbKnYXrQ/SQlujemsNc02B+jkzqvskG bmrUiC4mPN4EyIhf4kAuJR3FFO2b/7AxvuVA+S+zU1ecJn2yeRlZ5T1Nhs2r4EfffIRX gTJZdrPJB9QOdI5EjniuBL91Kc53PII0+uM+gX1H8wFeSdXV3yhAklLWoAk6GpRnleRF ABR2elNeoMxCvSwaDScutqqqwrZT1MovVIt4IuID2MFwmnhooJNaevFHjMu6ZQ9oPg9Y hucHSMQqt441xPUOifyDt0c1LeT4kiudZYdJJV0IgNB1Zbzd6cRNOoFbV7YARxQnWMld vKMA== X-Gm-Message-State: AOAM531vIf8//Q25X0Kjp/cFSisbTp3Zv5AQjtyUEssgJ0dxRAyRzuVz Pg5VqIVS8cUoglRwsFqEw2E= X-Received: by 2002:a17:906:abd5:: with SMTP id kq21mr2406890ejb.291.1595509062854; Thu, 23 Jul 2020 05:57:42 -0700 (PDT) Received: from kozik-lap ([194.230.155.213]) by smtp.googlemail.com with ESMTPSA id q21sm2000004ejr.75.2020.07.23.05.57.38 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Jul 2020 05:57:42 -0700 (PDT) Date: Thu, 23 Jul 2020 14:57:32 +0200 From: Krzysztof Kozlowski To: John Paul Adrian Glaubitz Cc: Yoshinori Sato , Rich Felker , Kuninori Morimoto , Andrew Morton , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH] sh: clk: Fix assignment from incompatible pointer type for ioreadX() Message-ID: <20200723125732.GA9795@kozik-lap> References: <20200723082017.24053-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 02:49:46PM +0200, John Paul Adrian Glaubitz wrote: > Hi Krzysztof! > > On 7/23/20 10:20 AM, Krzysztof Kozlowski wrote: > > 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; > > Is that a reverted patch, by any chance? The patch does not apply for me and looking at > the sources, the qualifier is already "const" [1]. The patch is for Andrew Morton's tree which contain two commits: 1. sh: clkfwk: remove r8/r16/r32 2. iomap: constify ioreadX() iomem argument (as in generic implementation) This patch here was actually part of #2 because of being based on linux-next. However it disappeared when applying to Andrew's tree because patch #1 came later. Best regards, Krzysztof