Message ID | 20231123051807.3818342-1-victor.liu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 19D01C5AD4C for <linux-arm-kernel@archiver.kernel.org>; Thu, 23 Nov 2023 05:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=joz2ku7iNaFbC8GO2jyaFjF67rg50BqkHYlfur2N8u8=; b=R/H7d34xIaPSZg XYYW091nGpXmyxlZAW7XtC5g7uJMnpGOACb6T92yxMPkj03BCDs4FEslPuaiKsAuRuVxb5JKYEyNR QJSnfrgQgguZLibFuG09G6ZVx3vVDGnz41JGgZBADOQwdq8VNFPM3eGIvyvLNEUA6ul3JrLbD1PZq YPiVbXHn6KQwR67DDBURTM9Ow/1yAr6jUNqLkP4P6s7yyO2WTuUFNk5ai3YtV8gbH9m4NIeL9U+/5 ZnI5YJJICnw5t8TFKCG9y5MI2udZlPVOGvGkVqYxAr7SLfiZ/ddgyG5m3QDFj6/WwdQqi29OQeUKl f3ueRIdGaFbyxrqgcCGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r622R-003n42-0f; Thu, 23 Nov 2023 05:14:07 +0000 Received: from mail-he1eur04on0601.outbound.protection.outlook.com ([2a01:111:f400:fe0d::601] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r622O-003n3P-3C for linux-arm-kernel@lists.infradead.org; Thu, 23 Nov 2023 05:14:06 +0000 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 <victor.liu@nxp.com> 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 <lkp@intel.com> 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 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: 8OiAwvGY67b2/1ZFyZBMH9flI8mrPqgLCDV6IHj/A/74JZk0/CZ2hCUEtoSGId+g4Gt8fSpsZelaR7ums9UMvxO/5YWeGe+b07Bcug4NrpfRLHQdTa1Da7hB6F1mnRtz4YibIkZMbSiODphowMQHYOKyA7rsxuLLfLlK4eGYI5ITtEnVkgL2/PbM4Di/pX/vewM5B5Q5rIukS4r1u6aQTiK+RD4kbYYEpR4DMuBFXYJf5+lgi1HlWC+xENvSxjDg1244YLYBg8gNAxf4BtxIecoCJtnbVgu8tJjc83Zwqrj7mwnCRHaHFoKp3amzP/mCkcuthlc6BQwQ62s75WjQsXARffanR/wpdBFtXzSTraijZynzyoiZsCOROR12cpbnzP+y/DVhZzWk4LqLrf/4bisYiCTIqD1CJHbXupjcCvReoHfOQjvJAQLhaegMpfxsl1MSJyA6xbh1/bf6mBhL90C5DRpIzggh0VJp+OPIHK9Ivsq+6h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WrNnMvsi8iRcck4Qx/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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_211405_053045_23A1C91C X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v2] drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings
|
expand
|
On Thu, 23 Nov 2023 13:18:07 +0800, Liu Ying wrote: > 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. > > Applied, thanks! [1/1] drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings https://cgit.freedesktop.org/drm/drm-misc/commit/?id=9f83f37ca76d Rob
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;
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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202311151746.f7u7dzbZ-lkp@intel.com/ Signed-off-by: Liu Ying <victor.liu@nxp.com> --- 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(-)