Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18236318rwd; Tue, 27 Jun 2023 13:53:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49rtXMuQqacuOTsODkKhFxrIB+W5VrdDUPZdJ6yoRo7DG8twRGlZHBfkmmZyGxEggPrBhx X-Received: by 2002:a05:6a00:3a10:b0:668:8596:7524 with SMTP id fj16-20020a056a003a1000b0066885967524mr24755465pfb.20.1687899181544; Tue, 27 Jun 2023 13:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687899181; cv=none; d=google.com; s=arc-20160816; b=Eevpx4+8n9kbBxPDwV5fWVunWiIdh7ip5GQ416/+mP5pHHM99Z+BZCRvQx4EjP+R6I MUdvyWUNWrYeZxiX4fc4Exjnke/5ydrBqMlhHE6MlJwnIZkHVMOE+G8lmqYQxOr3u6T0 qLg+ONMolnH+FTKXOfJjRbnsqElHviffjOXu6JcgVjNrjqUAds+Eqol3Y/8Ivbdl3nn8 WFzSHKu/4IKjG/XXqx5twfWAnwyyrY0dfio7Qyq/iKI0n1A9dhtmfnQXJVPtie/ZUO7A E/6hnx8opeuDrZdpK+PuqpmcWWgiSuC9pv1fCIRXCiVe4tEFDpTURAaCdoZgNeJQABF3 qvAQ== 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=2CCHtuv2h6RPc7xyDAV09O/VTb/DZHoqqtDJwiZkPzc=; fh=6eSah9AUxAES3+kYM1NU9N8IsysF2rB3cKqvKEkS5yk=; b=vMgWtbJyJ/UgWY3yE/BTTpSXaUpBDd9NzXTS6VJ2LwDmDwm/ILBKFP/YdNE6nKX+c+ 3dZju7j3qQlleY02v+GANKHKL/Nc5dm6ONKo3vkFZ3+oI/SgiOy3HBDc6tbEcXvE8oc3 d6MnjvD5PMRldo9UtqDhqUs2qlmceK3yA0NEgIPxnJsHpV/hnCmcNjwUqwm8yvg/XW2g WUxpSYCpmQR/7spRfAz55aPf17huP3K55vkQYG1Mqd2uKTAP4gHohvu/Ggvl7R/VkQgq 4H91e9SU72DRfPFrJfmMlu5ESGNVMBYTmMyFNQxBXRjyiJisnUrlPAzY2aj2H5nTUcil ONGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o2lp6rjL; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y40-20020a056a00182800b0066a66144278si8195903pfa.108.2023.06.27.13.52.50; Tue, 27 Jun 2023 13:53:01 -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=@quicinc.com header.s=qcppdkim1 header.b=o2lp6rjL; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231304AbjF0UQ6 (ORCPT + 99 others); Tue, 27 Jun 2023 16:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbjF0UQh (ORCPT ); Tue, 27 Jun 2023 16:16:37 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 181C4295B; Tue, 27 Jun 2023 13:16:08 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35RJJTPL014439; Tue, 27 Jun 2023 20:15:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=2CCHtuv2h6RPc7xyDAV09O/VTb/DZHoqqtDJwiZkPzc=; b=o2lp6rjLbcSWuD2XBbWqz41Ho9UbimY2FGAxixjDzEHnkDwwPI9IV7YAvniyRr/KNwI4 DvN1qucfPZm0oFrdbgIYWCzXe/+RtBZWvtxFrbA/H20i52hQhPLKkDn8QU82RJ6ZsreX C4yzN2+n+E2z4ZvZPYJv2w+0f+YrkVFnyD3ImLI+nifkJI3LAm9zjvPy5TYWUyxBTW0m ADEmTxDPdxIQ4JJYNN6ArXIUg/TG6bHsZeKaD7DILt1953Amy82vCXuyfhGj4l/e/rgr ssAVOOm5xXywo7MRxzj4z7Nu1gStHVWtKyG+CHYENg5ohqiLTWmgp3yfsoOceV/Me6wi jA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rfpd8aaen-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jun 2023 20:15:12 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35RKFAta021198 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jun 2023 20:15:11 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 27 Jun 2023 13:15:10 -0700 Message-ID: <2e11a98a-3e44-7164-84cc-7bbd519b608a@quicinc.com> Date: Tue, 27 Jun 2023 14:15:09 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v11 6/9] soc: qcom: cpr: Use u64 for frequency Content-Language: en-US To: Konrad Dybcio , 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 , , , , , Marijn Suijten References: <20230217-topic-cpr3h-v11-0-ba22b4daa5d6@linaro.org> <20230217-topic-cpr3h-v11-6-ba22b4daa5d6@linaro.org> From: Jeffrey Hugo In-Reply-To: <20230217-topic-cpr3h-v11-6-ba22b4daa5d6@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 2PzFoOEPkv9f_AtAEEWMbxga3q8X1a21 X-Proofpoint-GUID: 2PzFoOEPkv9f_AtAEEWMbxga3q8X1a21 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-27_14,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 mlxscore=0 mlxlogscore=936 phishscore=0 impostorscore=0 bulkscore=0 suspectscore=0 clxscore=1011 spamscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306270184 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 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 - 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", ^~~~~~~