Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1107951rdb; Fri, 1 Dec 2023 07:17:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbFHf8jlksCD3hDPhaftQOkcrRVAHEgEqVCtxJ2Mn9eV6rqSzlrF4mkVDW8Zst7n208gTJ X-Received: by 2002:a17:902:9044:b0:1cf:a3e1:21b1 with SMTP id w4-20020a170902904400b001cfa3e121b1mr20612771plz.66.1701443833517; Fri, 01 Dec 2023 07:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701443833; cv=none; d=google.com; s=arc-20160816; b=EBY1oxXjN61eCfea7Cyuz06dpRW2ZSWkD+Ccs78rZCfzijnUuGdbtbDNkAx+G268CR gS78t0SKkpCVgyfV6wKw614n0EwhGL6kfVPLpWQlZwUQxo4LoFwn7jFmNWcrOv3vwqxU O44ydPah0m1ln+hpHInHMve0TKthU2EUQ61OmdaOoI6dX9ON/ubv1NYeNLI/P76XxO2g kxm8ikBL/M5x2EFdBdH6jMZVocAY/kftKK+Mvl/PtfCeLVaB9itM3D1Afcrkd1b7dzqm /WZJm/cc9S1zZPuCzCQsY3Dt3ftBa+EE1TWU9anNxP0LhlkZtQ/5j+VoPYFwhQaF6y1q YU5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=99jwCtueYKuqHSnO06pq+vanF2UHvfzCABwBvmt41SY=; fh=O5Q8LUawuCtrJk5mJG0Sz+mqyfwsmdVT26FvWpOyqg0=; b=wqPFgc3Wr0CyzLd2ptYeInJFdo/gxODvzVx6h5JAXF6VJub+P/PHJ0TYzAiY8HA6L5 oMCLiUEOfOaXctHQiBa6dY7kICc+JArOSCCuUYF0KxxD+ZmYpmCKZCkjFc8y2UKNP0A+ sjW8k+hUXUBE6gVuYKvFa23xwblAf983uNj8PGLZP8r0fivDLgm5+2batt4wyQrveE4v X02zKHd0yqyLEeG84owafRm32+atLy95AyIh3tWrsgrpNJhMfj3l5ft5R8dQ5hNwKsyG uTy55o1csGXzHDFHg6sXxrpmvh5dlg7io5b7frYu4wGSAaPb/uWBJN4dY7S5pihGbFZb U/jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dqpTXmDo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bc9-20020a170902930900b001cfc03c0e88si2598285plb.579.2023.12.01.07.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:17:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dqpTXmDo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 899CE8116E5E; Fri, 1 Dec 2023 07:16:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379333AbjLAPPv (ORCPT + 99 others); Fri, 1 Dec 2023 10:15:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379488AbjLAPPS (ORCPT ); Fri, 1 Dec 2023 10:15:18 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BF8D1BF3 for ; Fri, 1 Dec 2023 07:15:19 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6cde4aeea29so1897578b3a.2 for ; Fri, 01 Dec 2023 07:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701443719; x=1702048519; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=99jwCtueYKuqHSnO06pq+vanF2UHvfzCABwBvmt41SY=; b=dqpTXmDoXE6wytJPhm2PCBQfp/5HV7AtqtFuSibrn7aUkYe89B32Er6GSctfWsodS3 5adNy7vLCG/+vARD/4JbpdWTFJb8JGike3Oa9YjC3A18kQ5paNKCktHOGIWb5SY8rFdx hYwMu2edywVkLpgNa1FYcalgADmyGnWCieRxbjpkzNO96Q+qqi7AxLB3HcbyhJup1WKe 9nAw/W4/BGMt8cMwavX5YXBQo2jeXN1wMH7Jxa/8X88R7KKhsq0gpmNI97pOpt2IC8lo ZdXDc5tnZxdwXd1Aekcl8X9VjzPKXRjDe60PRrzGBVhNdZUMd4PmmlSipE1Tu7p1+FCc po+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701443719; x=1702048519; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=99jwCtueYKuqHSnO06pq+vanF2UHvfzCABwBvmt41SY=; b=YRcOBAh4wYT/VPi++LBEYd1xu95/WtzV18yrNBV6w3C3HqmNx3w9bQk2h/PoDIq+E8 AWBuPumvmqgbRPfXaSoHccgx/LtvS26qlwz6cVadgNciVfBh+77DvqQDPHhzl4hGxqkG lZIESNgIVvFI40axaIzbgWOY4aSUWoXKZ4bWBgSb8oOtREVsw7AmaBUQWqHMNfKCV/3p DxhqWUoYBwcoMRkMqTz0iB9iGeh1yug5D3pXG0onh6JDSn3qJUEaMyfS5J6gI1Rcb9Ee GOhikrCzayVNvzEAdzJDBtfJ2H9cdc/ojxsJa5ZrJ4YX7L1xaV7RKsJFe1f1poytQMf1 N5/Q== X-Gm-Message-State: AOJu0YyjUEHxp2Akn1wlgPURAAyfcTy4TZ531LuwDoR6yjX3ZVeR0srD v0cFGiITukZ+bIQNaphbKxr3 X-Received: by 2002:a05:6a00:938d:b0:6cd:faa6:fc36 with SMTP id ka13-20020a056a00938d00b006cdfaa6fc36mr3968638pfb.30.1701443718764; Fri, 01 Dec 2023 07:15:18 -0800 (PST) Received: from localhost.localdomain ([117.213.98.226]) by smtp.gmail.com with ESMTPSA id s14-20020a65644e000000b00578afd8e012sm2765824pgv.92.2023.12.01.07.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:15:18 -0800 (PST) From: Manivannan Sadhasivam To: martin.petersen@oracle.com, jejb@linux.ibm.com Cc: andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com, Manivannan Sadhasivam Subject: [PATCH 13/13] scsi: ufs: qcom: Initialize cycles_in_1us variable in ufs_qcom_set_core_clk_ctrl() Date: Fri, 1 Dec 2023 20:44:17 +0530 Message-Id: <20231201151417.65500-14-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> References: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 07:16:02 -0800 (PST) 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; -- 2.25.1