Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp289534rdf; Tue, 21 Nov 2023 02:53:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpDDmphjAXrHQK4EBnSc0s38Lyvqkj94rKOo/GcobNhPRBkyBfIXtIGQfYB7ftknURbsoI X-Received: by 2002:a17:902:e5cd:b0:1cf:51c5:d427 with SMTP id u13-20020a170902e5cd00b001cf51c5d427mr8951821plf.65.1700564028560; Tue, 21 Nov 2023 02:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700564028; cv=none; d=google.com; s=arc-20160816; b=ns3PXPUF2Xdz8r7XtysLRrBHlPlDxjaLps5cHFsvNYP+maO7PlV7j1j8PbNG1nZpc1 wyTcMQm3bK7XqiKYWZdOoNVAf/NfixeA56wSXc9lXrmqNDS/wLLn/asaz3k/2GL6mnjB BfIcPYqQ35ImhJvCli18bFOelXLeNlbbBW3dHBBvYvQa6nGlEi7Wbh4ClwmRzkakaCqW xfr9rMTKVtJiL0zpXAbUuBxL5mFyOoei6h9miuUfrBHNhk8jwqZSdj+tXiRQyHIuAbQV 7HIARO3ZgnfheSe0Vv6n85AhLbPVM8Zt5Z4uYWqFTRiuTvIM766o+ewpbP8Y9Bl7eprG zg/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pgdtPOntCEsgI+6w+P+4Xx7FduKbIvsDXyJKbyUahg8=; fh=qAQd9mx/4smx5kRuLWeG7nKx/HdXijGcz+JdYx/ogGQ=; b=rSm4FGc+KUyD6vPY9wnx6M5DDjRN+StBikvOyoUmqnd1QUIoYMF8kwt2iAcWaNDqhV Gp0K0IPCIWDFTGe0HjlvjM7FlwzVqIJljS+i8hcn2EwEU16FeKdtFG4yp5m5Q1b+aKYa j7lkpmdTIVEydHe2Rxf2zaAkDwPkgz11ga1nGkd7dvi9EQIgiIAWNybz3e0HsW5ADeWk xPokqkKiY8PQB6M3A/hLOmlFyFsT05Ub6Z4fNz4/+mqrOGrnYD0s/O9jXEO9xCMUhr+K ux4TDj3m872RgX2epMV8LPB9Z/rWtvjUwAfsrzyNVl123Efb4sXMI2UIrnvhIjVhjCVh DrAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k63wyvGg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o7-20020a170902d4c700b001c0cbaf6970si8942228plg.501.2023.11.21.02.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:53:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k63wyvGg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 312618106712; Tue, 21 Nov 2023 02:53:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232683AbjKUKxr (ORCPT + 99 others); Tue, 21 Nov 2023 05:53:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKUKxq (ORCPT ); Tue, 21 Nov 2023 05:53:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF4E3CA for ; Tue, 21 Nov 2023 02:53:42 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2865C433C7; Tue, 21 Nov 2023 10:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700564022; bh=dren9rtZs9LoxdyXhjp4Yyp5NRZDlU/F6eRzv4F54hs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k63wyvGgRqnzOXqid2+ftKU7DiGmT8uiPkGtucMbve/LxjKauljxQaRJm4wvJsvnn tutRm8pjX4++vubxjXub9NwK0JD7TPdrAhJtvwNRhkORceablc64xTOzoJTQVPZwHo VKDcQ4AHXU9WuYYQomdVBI/3M3UIHWzz42pEnCgAXgcxS1ZVuW6CG8T3rO6U/DFzd4 P1Sf7Hcejk9dMU1lI7P56PzuceLazAhZvhRvT37PH+wXRFSHux8vc0TGAtY6hZrhq0 na+Jl0+pEGi075Dtkbg27trOZDOWHHTwBesO9goMqdfuEGJHaLK/zjreZNY7JNIb/z LyCVGWAtyYhNg== Date: Tue, 21 Nov 2023 11:53:39 +0100 From: Maxime Ripard To: Liu Ying Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, 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, 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: Re: [PATCH] drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings Message-ID: References: <20231121085644.499520-1-victor.liu@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vg7wmxfcfxtenah6" Content-Disposition: inline In-Reply-To: <20231121085644.499520-1-victor.liu@nxp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:53:47 -0800 (PST) --vg7wmxfcfxtenah6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 compil= er > happy only. No functional change. >=20 > 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@i= ntel.com/ > Signed-off-by: Liu Ying > --- > drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c b/drivers/gpu/dr= m/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 *ds= i, > unsigned long fout; > unsigned long best_fout =3D 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 =3D 0; > + unsigned long m, best_m =3D 0; > unsigned long min_delta =3D 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 --vg7wmxfcfxtenah6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZVyMMwAKCRDj7w1vZxhR xTzNAP0aunK++Ez852vyYy+z6DvU89U7tbf+ixw9snVecp4TkwEA7zsiF1h1VoK7 CqzPhnqzP9snBdZ1jC/P01nwLUG19Qg= =Yh6I -----END PGP SIGNATURE----- --vg7wmxfcfxtenah6--