Message ID | 20231121085644.499520-1-victor.liu@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp484474vqb; Tue, 21 Nov 2023 00:53:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGD5ygvfabkwZZNejx9uvxjVqIzuPYSx3rRiz356iDTND3w3JmproA/SvxCqZuQCjY7PjH4 X-Received: by 2002:a05:6808:10ca:b0:3b2:f500:c1e5 with SMTP id s10-20020a05680810ca00b003b2f500c1e5mr11816853ois.29.1700556795771; Tue, 21 Nov 2023 00:53:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700556795; cv=pass; d=google.com; s=arc-20160816; b=T/InxZJJ+BPRLGhx23/UUP1b4JxqrT3quognPgjnNeZ6juJ0cT7yYhHfQZfHPrjEbK zGdkwBUAZr4ecQHgUbo0ZedMQKA/wlS6E7G+g6cMHp9TSgKw0nWDMlcVtcvU8kBdGhNE mNr+u5cA9OHbLTyzI1bj5oic2pt6jGNVjn0BXnjJt5sGzWXOB9yjHLw65jsjy0ywPpRq /wbXmIPSe2/+AmZXuklv3AA9071GkpN5wgnrebdw6+aFWy3Qjdlbql/uIwatNrvqZLBo OJFg+ctD9LN48JWijpn+7M5XG7C7sdD9u1KPxP0j1CY6X4PlxVcztwOTMHYj9EQFjrqM +T7A== 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=kZ/RCylZk1gpD10xsiA87Vwdw6vJ3NkS3AD4uv0jVuM=; fh=aT983EoLIQrbaj6wiAsXxxrn3DUAIvJzkchhEO3J4z4=; b=W6DEvajcF2VIsIzrwjdEZX/GUV6Pqmy+W07Uxs8dd7louDlkzqhV41fYyq7mWfDmN+ ivS1J4arV9wWMo2tSQs4PplTPvFUAyMu/pjqcDgiXdWVLrdIaqfSSa8rX0885ZIe1yCd US9XCOygtA+BET/qDTx8e9qAoPddJ0hxv3bbbiNZPEioJ/HOfTO0MGyTH8MSzAXM7bE3 D0Z60jUqDWPxYfuA5JK9LZSLgSdqzMInP45SZeS9IZhqa59CUx42IDA5IdFAmhrZWJ2d 9VhGH494PNgeIsoQ8ppeqm2g3JcBl2kViPpuuvvO3bgZbzrjF4zG5opxiGiOZ2O85eCw O0uA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=cDPnmUnd; 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 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x28-20020a056a00189c00b006c658aeb377si10125755pfh.190.2023.11.21.00.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:53:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=cDPnmUnd; 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 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 7FA7380CC13A; Tue, 21 Nov 2023 00:53:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230215AbjKUIxF (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Tue, 21 Nov 2023 03:53:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKUIxE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Nov 2023 03:53:04 -0500 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2064.outbound.protection.outlook.com [40.107.105.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01D5EFA for <linux-kernel@vger.kernel.org>; Tue, 21 Nov 2023 00:53:00 -0800 (PST) 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 <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] 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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/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6kIUSUjXHnUASOUw/RxYkwb/0+hP+gd4isiy1Gjgqb3Y0YLnbadWZ7Hy2rtZjenyegC+w9hMjuX9psXrSuJIFD5HZt5JXdO+q1yw8qtquoG7cnUFXZ220qJ/eUdo5Xq3qz1tkHSWa2Y4CmnE24K39Olu/9lV5e2g3WYE4FAgj2astD+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-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 00:53:11 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783163042302305095 X-GMAIL-MSGID: 1783163042302305095 |
Series |
drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings
|
|
Commit Message
Liu Ying
Nov. 21, 2023, 8:56 a.m. UTC
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 <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>
---
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Tue, Nov 21, 2023 at 04:56:44PM +0800, Liu Ying wrote: > 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 <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> > --- > 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; N is a divider, so it would probably be better to initialize it to UINT_MAX to avoid any divide-by-0 error. Maxime
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;