Message ID | 20231123051807.3818342-1-victor.liu@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp228843vqx; Wed, 22 Nov 2023 21:14:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEf4rh6NKkprXgrkRC/SWF5taqlPKHIE+49wtrJMWhsxag4o8P4frKJ3M6rwtc/g5jfKR1G X-Received: by 2002:a17:902:b601:b0:1cd:fbff:211f with SMTP id b1-20020a170902b60100b001cdfbff211fmr4361528pls.66.1700716451354; Wed, 22 Nov 2023 21:14:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700716451; cv=pass; d=google.com; s=arc-20160816; b=dGLEFLTHSzLm8/sdlXciqvRNT5IZp8FHerKSIIpoQfxHCJsZpYopD6RNbejlLU+L4u n3jZrnqJTmVw5PQGQ8FcoJerArcTewnhyIiVFlimhPbGbEx2xsiXoyzAMZ2tNJAAs0hi SRHWi51fdGlc85GcwvYTcmyfEcGFuG0Oyy8DXDRiNGirq7y5V33MCBzHZxk3PFqN/5sg caE7GF62AliVIWQosvb3n1paYjI6gdgxgiWTQgHhV5xOJPQJ4apB3qhctOrtIt0+MBSK lxBlBNVpRmPQxt2hIejSEPqwVEVhgASXTBE5bpeIFhR44aT0rVya7qt/Q70X5ZIBuNEQ dokw== 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 Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x5-20020a170902ec8500b001c6189eaadesi467227plg.132.2023.11.22.21.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 21:14:11 -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 BECF381EB0FE; Wed, 22 Nov 2023 21:14:08 -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 <rfc822;ouuuleilei@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <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 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: 8OiAwvGY67b2/1ZFyZBMH9flI8mrPqgLCDV6IHj/A/74JZk0/CZ2hCUEtoSGId+g4Gt8fSpsZelaR7ums9UMvxO/5YWeGe+b07Bcug4NrpfRLHQdTa1Da7hB6F1mnRtz4YibIkZMbSiODphowMQHYOKyA7rsxuLLfLlK4eGYI5ITtEnVkgL2/PbM4Di/pX/vewM5B5Q5rIukS4r1u6aQTiK+RD4k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wiyQBa/nv/rL+jvDV75nflPVdPo+u+h9V4gfhM9VXFuF4Ct6WeDEZMJVWtbNYoayPNjMKSPD4lbqeCXZKCYvf/ULKVy2es7Dt98UjdM5134hwCF9RcR15N/8acbNHmY5OdQh4NzBjG053pVKoybrPaERf29GyOj+09WIKAWWLxCmiHCTYRz2OG8qj2qXqxJuiF5x0o0UuUt3xnxH0/31X2XchgNQjKPALZR8qyHcTMJjiL+ivojG7wAZiUhs/4ermfTsRs36pTSKkJqsgWaZEWrNnMvsi8iRcck4Qx/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: <linux-kernel.vger.kernel.org> 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:08 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783330454076174809 X-GMAIL-MSGID: 1783330454076174809 |
Series |
[v2] drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings
|
|
Commit Message
Liu Ying
Nov. 23, 2023, 5:18 a.m. UTC
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(-)
Comments
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;