Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp114637rdh; Wed, 22 Nov 2023 21:14:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaiZpR/VGr1rwMxY1gpcV8cOKdhMZFFINGPhQ45FjzD5qEkd6gLBO3q0UYqPtfvkfLKFos X-Received: by 2002:a17:903:2d2:b0:1cf:6590:70 with SMTP id s18-20020a17090302d200b001cf65900070mr5783706plk.23.1700716455075; Wed, 22 Nov 2023 21:14:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700716455; cv=pass; d=google.com; s=arc-20160816; b=vYgCa8pCbqQKQxV1VsRfqdIvMTyawRNksFdnxTWuP0tsa4dchzcym3+hidZtcpsPbF z57WNaL2Bp02wng2pUceCJzUTqGxhAm3dCBbZXWa3PmfC4YQOOH52pDWZ76XGNaSnH2d d6MGgnn5nxm2EaAdwVtVJDECKcbIGl45lKxqbMuCvejtjYqDnr/C2J64qZnF+pRUhDpL SLlaoxLY78Kr02d7ifsjYsOqv56gX5y7KsB4yjtqRFaOHWaxuQ/ABGqBGp80mGJuBa0j eQkpPj+lxcnX/kIe0U0eTg/YQwFRUSMBq7Rg07mQBpTUo0fDpYwouozz1biQUv6sgHE2 +91A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=tCGO8YxaqmtrDTihbErqof0bqtxkGR0UeiW9iVLqKE8=; fh=aT983EoLIQrbaj6wiAsXxxrn3DUAIvJzkchhEO3J4z4=; b=F6hjhsH1fQKVwDEbRdZqOuRimeM6BhpKY5GHf7CMjWCSJPIgExgfkVqXIV1uWMOJM/ lIdpTxeuG5AEfVP/htzRIPQF+Ga9jo03Cee+5jdLHjh8YYVcuw3XYjM+3u8MdeBK4CIi K9gtprpmUQAODUvNA7famMdpzHqgTDQKsdUNYiF/NyLzxpd/JWxfrRomOkUc2XbqxByK EzvV/fEUpA0jq8JPDE5NCIsC2k7IDoiA0+NAvqnZb219iO0MtYOQVg/reuYJsavYLioX ZECRHPbdsQByjIVmGlAo5br9oU3YUlkoN3zTi0sh2WUd2RnOnR4E1iV1hl9Gip6TdcT3 aegw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="HA44V2P/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id n2-20020a170902e54200b001b8921fbd87si442698plf.490.2023.11.22.21.14.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 21:14:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="HA44V2P/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 48A4A81EB0FE; Wed, 22 Nov 2023 21:14:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232584AbjKWFNx (ORCPT + 99 others); Thu, 23 Nov 2023 00:13:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjKWFNu (ORCPT ); Thu, 23 Nov 2023 00:13:50 -0500 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2087.outbound.protection.outlook.com [40.107.7.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C07D8 for ; Wed, 22 Nov 2023 21:13:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k4AkWQ9jZvdia8upt6SCrOWA31vjNKr0EkwBpmavW69D3ENjVLxkjnvrZ0MmwDqHG3NDHOaxheB90eAedHV47ZHD7pQgL+sPyC8fHMdkKnYkTpECmC3YeiP6YKPh9817k+VYjh1O2UgKEJLaEgMovixqBjDUzMKDz4+E5Teye5Yv6AhWcmkHrpb3S2fQ8Afq0t0rBKBiBGQ0gK4b0Fh5iwj+2JT+YxL1FaMyBVOiQ1+ntyvcf58D7HWEiPyJp2h32uERu6hLiLss+fWIVkADpkWQSY4EMD87TI6UrXHT6Utj7Zc91SBuie/s7EZyiKvW27yYz/pQ6UPJw+39/btLjg== 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=tCGO8YxaqmtrDTihbErqof0bqtxkGR0UeiW9iVLqKE8=; b=Ig/V3oqjUIScACWLse1DGNlttTzLtySO4f1daobyhXpPdnxjp/JihOE+KlxE7U+xnS41wQ3842d8OZ5DM06RyU6aV0exLNZqfqqSvj/MY7d9IA/p5i9vvrI46GUTVGQR6FnA/S9KYzW3ySqL790C6+3aVK/546e68vQpE4nc2MpFOmgFqIPiBuPDN0tzl0jLk6JrE8puSYa77rh9IsyI+ooVA4Pgp16p9mNY453Ac+DINtB2nf5yiPHf0igGgMIRe0MVgLNhyzYVHXcISFpKjwVXj/wQ+eApmxRCcpKmW4Y7Y5g5jP8Smv4WviyJiat7gRniW8VTZYNgvnSvq4Kggg== 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=tCGO8YxaqmtrDTihbErqof0bqtxkGR0UeiW9iVLqKE8=; b=HA44V2P/pRxd+lam419DR8P4Rf0L9R5hkVoMMT2OfR6o8wI1nw6HvZ3irgHuACEnKJ5eVQxNZ08GxNTw9w1nVb9XM7Hf532qGvru5Ip2y3Wr8jNcah6GUn0R66QE13TX2gw8MJjGOfi6GPrPg1b2j9UwYTo8yrlXJ4gaHvAHG70= 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 DBAPR04MB7416.eurprd04.prod.outlook.com (2603:10a6:10:1b3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Thu, 23 Nov 2023 05:13:54 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d99:f43f:65a3:9bf]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d99:f43f:65a3:9bf%7]) with mapi id 15.20.7046.012; Thu, 23 Nov 2023 05:13:53 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, kernel test robot Subject: [PATCH v2] drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings Date: Thu, 23 Nov 2023 13:18:07 +0800 Message-Id: <20231123051807.3818342-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0017.apcprd02.prod.outlook.com (2603:1096:4:194::17) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DBAPR04MB7416:EE_ X-MS-Office365-Filtering-Correlation-Id: 12918989-707a-4448-9ec6-08dbebe2fc8f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iH2XrKHYin2C0pcgD8rn3nmvDxCHZw8XvRhcCSvhJGBRZUDA6ZQdVkhnr5nhikaO3coymu2R0Js0Jpep4lkd+vz2UC4vOGJpJmGasdydsGZACXNKSJrU1xHE/aBcOKJ4vV1gNcFU5NTgWn34wU74+lVTGcLrwvZOctwCqMc+uIZWEKzrwhCBnY2ygho2i2npLicT8H2oYTB2xJuanC4jAZL7X0KsHEYJlNatv3lE9KjyMMBBV4HIwvvekY7VecZpiZaAfZ4NVZCEnKCwQbvsrEkrj5Z1xLg95yiAVhSL3IUpBdnxKlXxLsWi7l0XhoQzHV8V8LLCyt+kdGKLsCrYNutdUUti9DpPpWPSawxHDxrJ2MTweZQQu4HDpmdtacIPE0s7dRQ3MLS0NGVr+5vQJ7Vw9N4A+jaPv1TznV6VBefa2tnVjRP4StsiCk8BTwH7eBotzxLIoqYd/qcWjw+BYl+N1WzMMm/HUZMSFCRGw0heqFFPS6/ZQUmnqadEwV4kcqAPyfc4hdBE2SKC1hoFHtH9ngVB5Y2QoSkos2x13R9F5LMHRzy+c04bCx5w37AJNMn1RTXKgBZ+a4UCJqNMC8lzBPwpR0Cv6gbyoOaTTFVRl8ahVaW+f6nYUuU4P0cRcmdpovm+mqUfiZildxZ5nw== 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)(396003)(39860400002)(366004)(136003)(346002)(376002)(230173577357003)(230273577357003)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(1076003)(2616005)(6512007)(6506007)(966005)(52116002)(478600001)(6486002)(6666004)(38100700002)(38350700005)(36756003)(86362001)(66946007)(5660300002)(2906002)(41300700001)(7416002)(66556008)(83380400001)(26005)(66476007)(4326008)(8676002)(8936002)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?8OiAwvGY67b2/1ZFyZBMH9flI8mrPqgLCDV6IHj/A/74JZk0/CZ2hCUEtoSG?= =?us-ascii?Q?Id+g4Gt8fSpsZelaR7ums9UMvxO/5YWeGe+b07Bcug4NrpfRLHQdTa1Da7hB?= =?us-ascii?Q?6F1mnRtz4YibIkZMbSiODphowMQHYOKyA7rsxuLLfLlK4eGYI5ITtEnVkgL2?= =?us-ascii?Q?/PbM4Di/pX/vewM5B5Q5rIukS4r1u6aQTiK+RD4kbYYEpR4DMuBFXYJf5+lg?= =?us-ascii?Q?i1HlWC+xENvSxjDg1244YLYBg8gNAxf4BtxIecoCJtnbVgu8tJjc83Zwqrj7?= =?us-ascii?Q?mwnCRHaHFoKp3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=?us-ascii?Q?vrV7lsgw8TnM07+abFs2nOGPX3xfBp01c3Qk9/CNH2tRkTgpt4vCf7bivUKm?= =?us-ascii?Q?siCkOHjCvGisvnW+NDCP1KLQUrF2/yUhsELPzSDYwiyQBa/nv/rL+jvDV75n?= =?us-ascii?Q?flPVdPo+u+h9V4gfhM9VXFuF4Ct6WeDEZMJVWtbNYoayPNjMKSPD4lbqeCXZ?= =?us-ascii?Q?KCYvf/ULKVy2es7Dt98UjdM5134hwCF9RcR15N/8acbNHmY5OdQh4NzBjG05?= =?us-ascii?Q?3pVKoybrPaERf29GyOj+09WIKAWWLxCmiHCTYRz2OG8qj2qXqxJuiF5x0o0U?= =?us-ascii?Q?uUt3xnxH0/31X2XchgNQjKPALZR8qyHcTMJjiL+ivojG7wAZiUhs/4ermfTs?= =?us-ascii?Q?Rs36pTSKkJqsgWaZEWrNnMvsi8iRcck4Qx/l8Ard?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12918989-707a-4448-9ec6-08dbebe2fc8f X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 05:13:53.8990 (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: VORRkMS/bL6+XxulKqc+XVLGqyFOJjsk4Gyks2GLJaAVSl6AJYctPQh7GK4QXuMpJMEJkm8JBZylQUCa4diBhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7416 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 21:14:12 -0800 (PST) Fix a couple of building warnings on used uninitialized 'best_m' and 'best_n' local variables by initializing 'best_m' to zero and 'best_n' to UINT_MAX. 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 --- v2: * Initialize 'best_n' to UINT_MAX instead of zero. (Maxime) 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..2347f8dd632f 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 = UINT_MAX; + unsigned long m, best_m = 0; unsigned long min_delta = ULONG_MAX; unsigned long delta; u64 tmp; -- 2.37.1