Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp407092rdb; Tue, 5 Dec 2023 08:34:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVX6YTyKAsd+vJ6EGlTNei3VUAZz1n9O4ZOa7b40YjMFNR/jBUdpRsFzMCUkth3K5RUgQ+ X-Received: by 2002:a17:902:db06:b0:1d0:c20b:a0a with SMTP id m6-20020a170902db0600b001d0c20b0a0amr1704869plx.61.1701794049376; Tue, 05 Dec 2023 08:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701794049; cv=none; d=google.com; s=arc-20160816; b=O1Fqqpz+iFzGI+qgV7FYmSVYMPdT/gQ/tkhzieX5uzm4FUyLvgVPqfepBh4DgHiXF2 VGGjYFeEaCel9sQjMVftL43Ld0bblnQRZu/36EkQOr0VbpBF3Ffjq+SN49JmGpFlxGKT GDdOOMkw5alRJApWzoHodIOU3v/MyiFbpcl6qh4RoAewTY1kzDjBnSrCtyuV746eZW04 LDDivrwLwQlB9t4BsgkZJUga7o/oZBXu2FxdUgE2quvvNhzJRETL4WKQ7lpMhMwWRGHb IFTZoUIzMBA3Hkn3cX9+XZn1dR5JcISk1I6GIpokqJ+H/t7a6wp/FpLfVrQDkNHaUuh+ 9lrA== 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=bektZohZZ1JiKi/f+qNYt+kGxWD44tNbUlJmqoXgg44=; fh=gzILGF6JPsiO7UEFX9x4a89rDq54UuFb/msn/YX3bBs=; b=g4xAeYKV3zLAUiGukkkgnIV8/oBIzNix/vrw/QTPa3vgmfybY5wWksngwF3qK1FLrw TCvK0E2hBWK/2er7f/ytIVhOTcc9r7ZKh+F2sve7MuFOtrX24iFIJOgZvVSYfcpy8Y9O jnucAN06mCcvT7n41iR+SI2/ZVzfLR95L6VnKT/llFtlImYEPzienV/D46m014lwcqHG A+AovPySeaQuh+bXI4/0J/oKbWABZzM8qUNivw8nFQtuyaG+JEhDYZsQO0D1pV1t+Mju jUt0SssKekG2MtCe0fKbOk1ZJYUcgsjCmjyfoesgoCm3ZefXrHaogGVVV8nyWDzrV79I wwPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NSBm1zuO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d6-20020a170902cec600b001d09278b856si4346938plg.347.2023.12.05.08.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 08:34:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NSBm1zuO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D7A9D809B6C5; Tue, 5 Dec 2023 08:34:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbjLEQdt (ORCPT + 99 others); Tue, 5 Dec 2023 11:33:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231820AbjLEQds (ORCPT ); Tue, 5 Dec 2023 11:33:48 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78EF4194; Tue, 5 Dec 2023 08:33:52 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B5Esvo1012355; Tue, 5 Dec 2023 16:33:45 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=bektZohZZ1JiKi/f+qNYt+kGxWD44tNbUlJmqoXgg44=; b=NSBm1zuOWrM+tGTnAPsPZDi8Pr/mCGBFSXqXuAFtduOZC1oznGmOZUrxpcvb65jxi/LL CQIqatleRIOA20muRBKIZ5sDZpHgfo7bjwsV215divEczAb1DEA1lW7wgE+6YTEaetL6 84X17MOzV9lZaGNKY50dm+ouIYbDmeQC9+WMODKdrkOwGBBoXjxbjDeJfAtzsWuZIRYu Ai98Q0KHU01RE/uh3kunRCkj11GIfMum3YV7EyL/fERfXH4TsxB5YMpD7j6BM6wHVPUf Ky1HpwUSPfp3ngySZTBsfhhLYHv6K7wgYBkK8iSX/ng0zpa8nPXldgIRj9bdJ1PQxX+y AA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3usmw02axs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Dec 2023 16:33:44 +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 3B5GXhKD014137 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 5 Dec 2023 16:33:43 GMT Received: from [10.50.1.19] (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.1118.40; Tue, 5 Dec 2023 08:33:35 -0800 Message-ID: Date: Tue, 5 Dec 2023 22:03:29 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH 13/13] scsi: ufs: qcom: Initialize cycles_in_1us variable in ufs_qcom_set_core_clk_ctrl() Content-Language: en-US To: Manivannan Sadhasivam , , CC: , , , , , References: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> <20231201151417.65500-14-manivannan.sadhasivam@linaro.org> From: Nitin Rawat In-Reply-To: <20231201151417.65500-14-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: 6yzes2jpIIah30QhFlUTiiJR9Z25wCxM X-Proofpoint-GUID: 6yzes2jpIIah30QhFlUTiiJR9Z25wCxM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-05_11,2023-12-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 spamscore=0 malwarescore=0 clxscore=1015 suspectscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 impostorscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312050130 X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 08:34:04 -0800 (PST) On 12/1/2023 8:44 PM, Manivannan Sadhasivam wrote: > In case the "core_clk_unipro" clock is not provided, "cycles_in_1us" > variable will be used as uninitialized. So initialize it with 0. > > Issue reported by Smatch tool: > > drivers/ufs/host/ufs-qcom.c:1336 ufs_qcom_set_core_clk_ctrl() error: uninitialized symbol 'cycles_in_1us'. > drivers/ufs/host/ufs-qcom.c:1341 ufs_qcom_set_core_clk_ctrl() error: uninitialized symbol 'cycles_in_1us'. > > Signed-off-by: Manivannan Sadhasivam > --- > drivers/ufs/host/ufs-qcom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 590a2c67cf7d..208543a62d43 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -1296,7 +1296,7 @@ static int ufs_qcom_set_core_clk_ctrl(struct ufs_hba *hba, bool is_scale_up) > struct ufs_qcom_host *host = ufshcd_get_variant(hba); > struct list_head *head = &hba->clk_list_head; > struct ufs_clk_info *clki; > - u32 cycles_in_1us; > + u32 cycles_in_1us = 0; > u32 core_clk_ctrl_reg; > int err; > Reviewed-by: Nitin Rawat