From patchwork Tue Nov 21 08:56:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13462647 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81A8FC54FB9 for ; Tue, 21 Nov 2023 08:53:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A32CC10E243; Tue, 21 Nov 2023 08:53:03 +0000 (UTC) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2070.outbound.protection.outlook.com [40.107.249.70]) by gabe.freedesktop.org (Postfix) with ESMTPS id 733BA10E243 for ; Tue, 21 Nov 2023 08:53:00 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FdutfUNZygPK/2W2CfE6m30bhAeyWirct3cqOwF430mx7EFDq0PL2hsHBx6OYTK9q1Z8sVWm7HR/5DJVDWZrIjkbg66B4oLWzJssOTu13NktTG+f0/JQ9y6mGKuUxk0SMRvhq5RQO+wayhmld/D7/tMGgs1Y0sX4QqpW1u+CRD8JjNTVyyksyklgUR08ydS1OTl+6cQt00UrMSAy8mfCVl/4tbmtyb4IGScnUhkWVzlX9PRSW7O9/iPXI58XpgqNeZvuQskWztuskwoegN33hLshIA/lr73t/DPC64q4puRw13i8+837hTqas8IvoNbdsHDVSQf2qtgsiiGVnektgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kZ/RCylZk1gpD10xsiA87Vwdw6vJ3NkS3AD4uv0jVuM=; b=j0SpyLi/yY1vQn0iKC+YHFbk1myNKp82QG+usoB9NxzZNSvitCu5FQpZ+mknWMHkLbURm4rYpREpnpn/UiijKiD+12/V7VTuk1gyyDh91zQYS2nzmNrLNMHpNVDUapjWmPv7IoN+7tJWRVIJT8TiI2xZzJ1Np6hMGbA6ExXYXt+yq+HlnsXZz8mvspRJ16b2Ezv0rnjCqdK8pihfguLvUnvjCdD1RNjfAdrI4rtj3+jBjE7rfpuVYwybhZ+yCcp0+2IfKvzpJlqOvNhjHcOT5sThY5erRUOjKwlM/v0pFcUFeVn6Spb6zgxQTeR2gRva3ZgJzc2ubTYfSNaDct1elg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kZ/RCylZk1gpD10xsiA87Vwdw6vJ3NkS3AD4uv0jVuM=; b=cDPnmUndpVxRFQ5XvdlDh49nFwnqKxDIwW9wYEe6ZH9O4oEbozyl7IQwkJiIPyGR3CbQCm+DhOKdEF9cd84MQt4rU5PMkvPHngabdKzt774VbEwGFXZr0Oo0rBRhI2SmFkWt67An+CC3jtcQWE0tOIAH2T8ydzSqfcnSzs56AOc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PA4PR04MB9637.eurprd04.prod.outlook.com (2603:10a6:102:272::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.16; Tue, 21 Nov 2023 08:52:56 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d99:f43f:65a3:9bf]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d99:f43f:65a3:9bf%6]) with mapi id 15.20.7025.017; Tue, 21 Nov 2023 08:52:56 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings Date: Tue, 21 Nov 2023 16:56:44 +0800 Message-Id: <20231121085644.499520-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2PR01CA0189.apcprd01.prod.exchangelabs.com (2603:1096:4:189::15) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PA4PR04MB9637:EE_ X-MS-Office365-Filtering-Correlation-Id: 9068ceb4-8efd-42b0-3458-08dbea6f416e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zuVr/BsHGMNmTq+Lj2MseyStLtGJWZ+tUST7XMk9p2fGJ/aPS4Pqp6w9Ok+hfy1Bdg7xFUM1w6P1o7b/wNFqa8cE18Lj98Bv4M3e8Kf4c8mU1A0xK8FR67zsezwM96pjlcmYmpHbug6QkDcVwh+iypJZTwhR9z9nZHWVSKRFbDTBm30OjXqqni0iWpXgSsEmLR8+aS4gCUmmnXnLrfKqbgq7t23lVcZx0oXjG26yiHVGRI0HNxzd0d4R4v2fKs/hH+LPkbeA1CZWjPe7LYLyzWyn46dt/mnBVJef0etELvN2A4I5cIWpP9OixTo2uUJNCDUUqoCIRWDaYd36lI7vkfws8GXd664/PBUGay6gtWFhBcWP9Md9Tf0jXjf/TJcrOb4KWvyuFFUXd+mzqIiOjbtxbwaMv9gRGc2C0qCcoU78sAFXb1EGMXNV2QSYoqtVjfQ3ZwzeCXXoQh4sZ7wLCyxeDHDvWgXDZqL3+Xf74kyWyFyk7WmAkoxY0GMHZbLrLlFz40jBwD5N2gpKKPESzPJYj8nXHfEd/4q0JQVrwWg1WBR7Yf+iOBa0YboppzQopZucE/xspPK1fIg3POxthFpzhafrCQfcjBRqR5m3RztO2UbSjB998nUKQe8n4UJRaB8YhXMsUg68STzzaIbcwA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(346002)(396003)(39860400002)(366004)(230922051799003)(230173577357003)(230273577357003)(451199024)(64100799003)(186009)(1800799012)(7416002)(5660300002)(1076003)(2906002)(26005)(8676002)(2616005)(8936002)(4326008)(86362001)(41300700001)(38350700005)(83380400001)(36756003)(66946007)(52116002)(66556008)(66476007)(6506007)(316002)(478600001)(966005)(6486002)(6512007)(38100700002)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GY11qIcdHe2tz+56QgGLD64NKR8nrYixOUVOWz8mRLCM8DKn5Kqj/kVlLPqz8hCiULreGe6wYcn/a/gXfumdcSDsiLsZzI677JcW8I01vKpjQYdghnt/8BOrBkAhX37T9BFtmDe9yZNw69Ja82oH9WLJTdfP41v5/yeg6jzUKcEtnzNlhDauxmZ0c69XqTjFix7Wq7qhOb2+ErPyoJksgjLel88210Apih9IXrWRWJsyi/uBNj8D9dyte+vxOfW/39Rp88NZ7fTDE59FMtu/jiPlWzYk6k2fYaJFEMGKOk7eJcYZouHtdR/Pbi+nJvr42I+P/hr41hf3K7wIeP+vKfAee4QQAmt47ZHGKB31cgx6zc3f2xVk02w4YKUf1GqrqcCR5sjyMQjdSBjwn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g3WYE4FAgj2astD+tOk5U74qaWtNvNoahOYIbi0MmFaxk0gVbMqd0XO5wprdtYXkaDIC+8dxxyH0VjbaiMGYhqzV1KjSuPCyOjAI6ay+vjV2JCsQBZEGw99J6Pnx4 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9068ceb4-8efd-42b0-3458-08dbea6f416e X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2023 08:52:56.7078 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2JI21vPmu+i53fMqa68vPf3azifwJ0RhLvU4jT8OMBKCLQlZWVUcFoyL5lds316uURU0R2ZCUMvvKw+sQiMW7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9637 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mripard@kernel.org, neil.armstrong@linaro.org, rfoss@kernel.org, tzimmermann@suse.de, jonas@kwiboo.se, shawnguo@kernel.org, s.hauer@pengutronix.de, jernej.skrabec@gmail.com, kernel test robot , Laurent.pinchart@ideasonboard.com, andrzej.hajda@intel.com, kernel@pengutronix.de, linux-imx@nxp.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix a couple of building warnings on used uninitialized 'best_m' and 'best_n' local variables by initializing them to zero. This makes compiler happy only. No functional change. Fixes: ce62f8ea7e3f ("drm/bridge: imx: Add i.MX93 MIPI DSI support") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202311151746.f7u7dzbZ-lkp@intel.com/ Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c b/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c index 3ff30ce80c5b..7b3b4f985098 100644 --- a/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c @@ -226,8 +226,8 @@ dphy_pll_get_configure_from_opts(struct imx93_dsi *dsi, unsigned long fout; unsigned long best_fout = 0; unsigned int fvco_div; - unsigned int min_n, max_n, n, best_n; - unsigned long m, best_m; + unsigned int min_n, max_n, n, best_n = 0; + unsigned long m, best_m = 0; unsigned long min_delta = ULONG_MAX; unsigned long delta; u64 tmp;