Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5249718yba; Tue, 30 Apr 2019 11:30:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDaVr6Rjqcu2wepYi/R5X8MfKLRUt318ZOGZtIQfQXTgm1RaTUjhkcR1kYcYVCiygRK+DG X-Received: by 2002:a63:d150:: with SMTP id c16mr14599042pgj.439.1556649055565; Tue, 30 Apr 2019 11:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556649055; cv=none; d=google.com; s=arc-20160816; b=dRZnL0LZCuNZg7NOHwEH1voMh7v8fkGjTF0GVA6WyXnEHvRmftI/bGcstvgbye79MT 9XJr1ECVtGj5C2KVBW7ST/chkksxeWbhRlL710wgvf67rpuwS5peRsCDTaJQ1dIT9xxP Doe3KIHv7161LgrxrWiJq5x8Uh0wl6eZ4rhcr4vWC5lPT8u27u0Tr9j2an+mpn1OrEB9 3jsE8Jmo7Hj0c+Rnd6x+6fktHLOUWCxKGDs3nh8nl/xW2FMbTLvbnEoCbnWOp3D9Yl50 jRAeEHddaEUSDg22Y1ZgF9JA9M3UXZCPKFbvg9ZKwiCoc7l1s9DkXMmRWNyl0rzlufGi sfLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:cc:to:subject :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=BGQd1UfwiNBEi6w6TVqXaAP9450umHg/BwCoI/Bm1vU=; b=P4hJevaiQBYsJjGzB6iiSBlE0ONtlDM20aoQgvshFKUI6oTp2DlOIZokEn56HKJDKY VQwAiL87E+1sxmqgnQnVgu2xUTWRnuufXsjcMTeOKPfFsIjkF1asuQkWssFSssquYvg/ HXGMTg/FZbJje23KEsFYPbP+V4CUdqGqzhh5SZLK7CxCx6d17Hq7Z2qlcsZXEm6peYKC 8cIOA8t/XTgxJtD6VtI4aGBEGhnWvGJbgF9z1UFJhiUukEWtJGiWRgS7rCYOiqetmD6+ 0Vu/eyYw6/Jm7ta0jisQNQjzsArnwcq6mQorIQ0JNLID6Lqbgoxz5khz7Y0e5LrJvD8H LPdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sdO0p9Ji; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f6si40590305plf.90.2019.04.30.11.30.39; Tue, 30 Apr 2019 11:30:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sdO0p9Ji; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726952AbfD3S2d (ORCPT + 99 others); Tue, 30 Apr 2019 14:28:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:55276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbfD3S2d (ORCPT ); Tue, 30 Apr 2019 14:28:33 -0400 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8F69020835; Tue, 30 Apr 2019 18:28:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556648912; bh=VOpMYJ8YhRchYdHgIx28TYVxElAUvAnFpns/Y7xKLVw=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=sdO0p9JiF4MxxzNhCblMxxMMaU9fwVgAAXXDhxWvCmIpYdAtV0MHbnGajyxJcT9H7 9vFbrVwWsq8N0q4ABTiniBbOGo4XUY+WXwF8RSmTQKGOYpBo3O83KhUHeI7Mkjzms9 //vzqhOVUPYiq2iDPvmpNZgQEgX/bpVFqGv57pAA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20190411082733.3736-2-paul.walmsley@sifive.com> <155632691100.168659.14460051101205812433@swboyd.mtv.corp.google.com> <155657878993.168659.6676692672888882237@swboyd.mtv.corp.google.com> From: Stephen Boyd Subject: Re: [PATCH v3 1/3] clk: analogbits: add Wide-Range PLL library To: Paul Walmsley Cc: Paul Walmsley , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , Wesley Terpstra , Palmer Dabbelt , Michael Turquette , Megan Wachs Message-ID: <155664891171.168659.10903540623861208390@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Tue, 30 Apr 2019 11:28:31 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Paul Walmsley (2019-04-29 22:57:15) > On Mon, 29 Apr 2019, Stephen Boyd wrote: >=20 > > Quoting Paul Walmsley (2019-04-29 12:42:07) > > > On Fri, 26 Apr 2019, Paul Walmsley wrote: > > > > On Fri, 26 Apr 2019, Stephen Boyd wrote: > > > >=20 > > > > > Quoting Paul Walmsley (2019-04-11 01:27:32) > > > > > > Add common library code for the Analog Bits Wide-Range PLL (WRP= LL) IP > > > > > > block, as implemented in TSMC CLN28HPC. > > > > >=20 > > > > > I haven't deeply reviewed at all, but I already get two problems = when > > > > > compile testing these patches. I can fix them up if nothing else = needs > > > > > fixing. > > > > >=20 > > > > > drivers/clk/analogbits/wrpll-cln28hpc.c:165 __wrpll_calc_divq() w= arn: should 'target_rate << divq' be a 64 bit type? > > > > > drivers/clk/sifive/fu540-prci.c:214:16: error: return expression = in void function > > > >=20 > > > > Hmm, that's odd. I will definitely take a look and repost. > > >=20 > > > I'm not able to reproduce these problems. The configs tried here wer= e: > > >=20 > > > - 64-bit RISC-V defconfig w/ PRCI driver enabled (gcc 8.2.0 built wit= h=20 > > > crosstool-NG 1.24.0) > > >=20 > > > - 32-bit ARM defconfig w/ PRCI driver enabled (gcc 8.3.0 built with=20 > > > crosstool-NG 1.24.0) > > >=20 > > > - 32-bit i386 defconfig w/ PRCI driver enabled (gcc=20 > > > 5.4.0-6ubuntu1~16.04.11) > > >=20 > > > Could you post the toolchain and kernel config you're using? > > >=20 > >=20 > > I'm running sparse and smatch too. >=20 > OK. I was able to reproduce the __wrpll_calc_divq() warning. It's been = > resolved in the upcoming revision. =20 >=20 > But I don't see the second error with either sparse or smatch. (This is = > with sparse at commit 2b96cd804dc7 and smatch at commit f0092daff69d.) >=20 Weird! The return in void function is pretty obvious though so please fix it regardless.