[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8656ec99-82fc-3570-701d-df4266712348@linaro.org>
Date: Tue, 27 Jun 2023 22:51:29 +0200
From: Konrad Dybcio <konrad.dybcio@...aro.org>
To: Jeffrey Hugo <quic_jhugo@...cinc.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Viresh Kumar <vireshk@...nel.org>, Nishanth Menon <nm@...com>,
Stephen Boyd <sboyd@...nel.org>,
Niklas Cassel <nks@...wful.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: Robert Marko <robimarko@...il.com>, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-pm@...r.kernel.org,
Marijn Suijten <marijn.suijten@...ainline.org>
Subject: Re: [PATCH v11 6/9] soc: qcom: cpr: Use u64 for frequency
On 27.06.2023 22:15, Jeffrey Hugo wrote:
> On 6/27/2023 12:30 PM, Konrad Dybcio wrote:
>> 32 bits is not enough for over-2.changeGHz frequencies. Move all variables
>> that operate on Hz to u64 to avoid overflows.
>>
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@...aro.org>
>
>
> I get the following warning when building this -
Ugh. Either didn't notice or clang wasn't unhappy with it.
Thanks for noticing.
Konrad
>
> CC drivers/soc/qcom/cpr-common.o
> In file included from ./include/linux/device.h:15:0,
> from ./include/linux/platform_device.h:13,
> from ./include/linux/of_device.h:5,
> from drivers/soc/qcom/cpr.c:18:
> drivers/soc/qcom/cpr.c: In function ‘cpr_corner_init’:
> drivers/soc/qcom/cpr.c:870:21: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘u64 {aka long long unsigned int}’ [-Wformat=]
> dev_dbg(drv->dev, "freq: %lu level: %u fuse level: %u\n",
> ^
> ./include/linux/dev_printk.h:129:27: note: in definition of macro ‘dev_printk’
> _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
> ^~~
> ./include/linux/dev_printk.h:163:31: note: in expansion of macro ‘dev_fmt’
> dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
> ^~~~~~~
> drivers/soc/qcom/cpr.c:870:3: note: in expansion of macro ‘dev_dbg’
> dev_dbg(drv->dev, "freq: %lu level: %u fuse level: %u\n",
> ^~~~~~~
Powered by blists - more mailing lists