Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18251196rwd; Tue, 27 Jun 2023 14:07:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fK8d4BEjQnDjZdKIINt1PsgCtkMW8etH1aL6nJ17IPEou4xiFZ9HVcGnwy6DSfZ5MmZvg X-Received: by 2002:a17:902:d70a:b0:1b5:cbc:b4c with SMTP id w10-20020a170902d70a00b001b50cbc0b4cmr10891092ply.46.1687900067890; Tue, 27 Jun 2023 14:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687900067; cv=none; d=google.com; s=arc-20160816; b=bVKSoqnWb71NAJ+MzYDd+sV8cs+kpivKtt+fAV+vZ+NuuIEU7Y6oQ9ac3kH/lxbmaG Dlukxj0Abkkn2GimHjanKtHDDq0tI+Z6DuLxgrA4FVMBkdEwKXnRB88oR0LtPYwXon3S 3az+RTVJ6foYQwxi2uHdOTBIbFS02hnCC7YEf0lyMsF/TueEsbvTFo1rE27gw5whZ0nG rwjDyT3RaJHgyA0NhU0/gLJknafxerI56FPajjZ8adIqIq5olt6WQINzEWqLpwWLMWBb ZtXo+Vvgd268ThXdSfH7sS0oGkGU5xtVGAQZnhcOlHP4SNtvb4/AB9WTEp8xsiS+a3K9 LLQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kCzDt5CROKYWDohsq+V3lFQ9c+DIuiELGjjW1xUO8b4=; fh=bLXEdsrhta4eezWkHVg57+gqegzM5VcXYrALlkJqUuA=; b=HjxlFfCMWinKheTdZp8Bwf77JGJchCQ4EPHJXBYnOXlK1tSudQjtWdmwKkLsIGUbhi ZHx04swQ4LLs17tkuOsnmv3RBYt3V0LDipmch45f5xSJ4wFKePs+6HYhoAY4lbo7o+Gh hXYNNxy/x0x5nAHRlKXMDEecaJr04SEVb7PvDn3o4vtKBo6aLyeiUoPIlB9MYPRZ3jKJ ZWzl6EpV55gsDz8dAkdU3munZOYgVJoDzZAWqrVMZtvhWPnD8KHqMwPYqH+DjxK0M6nJ oZ66C8Z4ckF1NJk7tp2WrEQz0OCNTi3Jn/8z0DBGrSuvEAwJoT5HPkvUbLz00NOv62yo 3RdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qAyW46Dh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji6-20020a170903324600b001b074fbdce3si1992105plb.478.2023.06.27.14.07.35; Tue, 27 Jun 2023 14:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qAyW46Dh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbjF0Uvw (ORCPT + 99 others); Tue, 27 Jun 2023 16:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjF0Uvq (ORCPT ); Tue, 27 Jun 2023 16:51:46 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BADD2727 for ; Tue, 27 Jun 2023 13:51:33 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b6985de215so52125351fa.2 for ; Tue, 27 Jun 2023 13:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687899092; x=1690491092; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kCzDt5CROKYWDohsq+V3lFQ9c+DIuiELGjjW1xUO8b4=; b=qAyW46DhS3+TOPwxuOExnMpdtCBEUamMGarvJg9AcKe+yAemmVGXuJDBhKSC2Wvt09 +JylKWvPIxN+Cm0K5vEBsJiLTJSL3vk881EyySiYp2NkDp6Blw6EIDY6QgiGw8ZysSP3 Vs7wSppcZM80nNFx+UI3K2c87rc7afx3SqmAAqBdzvHouiows1haUY8tFPt6Anfs78zv xgEzx3oa7bWgJxYUSFbAf4tz55mRNvdYUuP7sC/350TTrUvZoAe66xhict4TnURHScPq LKcHgBd1dWr9ee2Xzs69iTaWv69vMAANoio4PO+9gqQwEzoNTJrFVAQyB2AIGcVdakI4 DUWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687899092; x=1690491092; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kCzDt5CROKYWDohsq+V3lFQ9c+DIuiELGjjW1xUO8b4=; b=C8AFIDxv9/YYENNsD+po+tE5hhG94UYhoaIhjyK3ImTcdHoikHd8nwRocJQtjRUY1x yVDy69gwT51yej/wWlaA7WoVYLWlQ6eYbc0TeergWv1xCa69XjNIidyegFrQ0vRhId3O YegAP/p/xmgn+5y+ZFSF4Wt9hVUPw52/6eaVeijcyMFskt4x9G7NhrH6xwk5WzMcwvSw YJTfxm1Bd05D7WJNdKE7SRK+yOwJubqXWaIvhd70/d8gbMopDJ1g2DkfaR7aoxSqmAPj 9u9o9KH4MGRwhqvXx+K9XzKOkcz4B526nOUYZgjLF+CbEbuV9nsRZGnBLSDgkXP9O9f9 S3IA== X-Gm-Message-State: AC+VfDyMIONK8pwnAGqZ9HmcWPsQTbXTjZI0W5MQbzaxtayTk4HH2ouZ ll4qUly5UQ/rTzrKRNR55n90/A== X-Received: by 2002:a2e:95d7:0:b0:2b4:65bf:d7b with SMTP id y23-20020a2e95d7000000b002b465bf0d7bmr18474072ljh.2.1687899091991; Tue, 27 Jun 2023 13:51:31 -0700 (PDT) Received: from [192.168.1.101] (abxj103.neoplus.adsl.tpnet.pl. [83.9.3.103]) by smtp.gmail.com with ESMTPSA id y20-20020a2e95d4000000b002b6b928a6d8sm161413ljh.33.2023.06.27.13.51.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jun 2023 13:51:31 -0700 (PDT) Message-ID: <8656ec99-82fc-3570-701d-df4266712348@linaro.org> Date: Tue, 27 Jun 2023 22:51:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v11 6/9] soc: qcom: cpr: Use u64 for frequency Content-Language: en-US To: Jeffrey Hugo , AngeloGioacchino Del Regno , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Viresh Kumar , Nishanth Menon , Stephen Boyd , Niklas Cassel , Liam Girdwood , Mark Brown , Conor Dooley Cc: Robert Marko , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Marijn Suijten References: <20230217-topic-cpr3h-v11-0-ba22b4daa5d6@linaro.org> <20230217-topic-cpr3h-v11-6-ba22b4daa5d6@linaro.org> <2e11a98a-3e44-7164-84cc-7bbd519b608a@quicinc.com> From: Konrad Dybcio In-Reply-To: <2e11a98a-3e44-7164-84cc-7bbd519b608a@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > 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", >    ^~~~~~~