Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp471329imm; Wed, 19 Sep 2018 01:48:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbuB+WRMIk9gX7AJanqACFTThmFiZGfODLUuY3sgUfV7LxUpO8tcYBli2I3lIwjklusX8om X-Received: by 2002:a63:d613:: with SMTP id q19-v6mr31812177pgg.327.1537346912144; Wed, 19 Sep 2018 01:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537346912; cv=none; d=google.com; s=arc-20160816; b=DFaa2lQhcB4dFgdqFAvz5sDNpYv0Vzqh/lyXNjdmMCSal069qeyufTf0Lrur1cfOI2 QajNSb3WH46didD25oPnLJmRdTWvhWCmZjRrVZ1Jd1AmCcqj7QSNRyckSa/Xb9p9WNvg 5iGrupfBiyQ+oCpDdlrE0qNUlDw5LXxhwPd+kqnZjdhkOgQriP7ErY49Q+9rfx9ttdng a3HhICOrttkrD5OFQVRaU9WL6LbNz9TABxHcI2f26QByGRakQUo6Sf3AuA3tO/FhobHY lfS0woyEUA0mE8F3UlaSroMf+jI0RJvoUNEMrZGdiCHnTyplZozANQdrtT/kQRQM2nvC e50g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9fIqg04zPMT1AFjaKnSE60gy0p3HZHMDtIKcRe5FbKQ=; b=newTP0tMy6NNcCTUntJErOJ6wClho0e2ehAgaixWlnr60Rf4HDwNgtHpt2zxyYiCJ5 tdLoWbsWQPtcNsPP8dVxfp0ZUG1Qq5bRZW57M4okOVn9NlRKS2Gv2e8Ukj69WkU6lsCg 5e6AHQkveXL18zfFuklvet9hiUXfghHyVVT3PeDVOzayBYY8V8fZaqLlekkRHEe5XSrT g5eMOrW6KMk9LYhoJaC2tphBrfK8rJBXCad+Tt5rmf2PUXJnDGdm+nnZr7z1XniPkmrG h47pxsaCOFlD3i4oU+1VNj35Y9mwHD5xr2M45MmC/R+Z/eODCIGscwcsv2zm/rYS4VLU 1Sxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92-v6si22127897plw.81.2018.09.19.01.48.16; Wed, 19 Sep 2018 01:48:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731025AbeISOYY (ORCPT + 99 others); Wed, 19 Sep 2018 10:24:24 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42175 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727820AbeISOYY (ORCPT ); Wed, 19 Sep 2018 10:24:24 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id AD9A1208C7; Wed, 19 Sep 2018 10:47:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-99-10.w90-88.abo.wanadoo.fr [90.88.4.10]) by mail.bootlin.com (Postfix) with ESMTPSA id 79FE7207D4; Wed, 19 Sep 2018 10:47:19 +0200 (CEST) Date: Wed, 19 Sep 2018 10:47:19 +0200 From: Maxime Ripard To: zhong jiang Cc: airlied@linux.ie, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: sun4i: Fix a uninitialized variable warning. Message-ID: <20180919084719.6ymf6h4eftomfab3@flea> References: <1537255520-41614-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tb2cum6aarkak5h3" Content-Disposition: inline In-Reply-To: <1537255520-41614-1-git-send-email-zhongjiang@huawei.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tb2cum6aarkak5h3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 18, 2018 at 03:25:20PM +0800, zhong jiang wrote: > Fix the following compile warning: >=20 > drivers/gpu/drm/sun4i/sun4i_tcon.c:1088: warning: 'has_lvds_alt' may be u= sed uninitialized in this function [-Wmaybe-uninitialized] > bool has_lvds_rst, has_lvds_alt, can_lvds; >=20 > Signed-off-by: zhong jiang I can't see any code path that would lead to an uninitialized usage of that variable. Which compiler produced that warning? I tried building it today with gcc 8.1.1, and I don't see that warning either. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --tb2cum6aarkak5h3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAluiDRcACgkQ0rTAlCFN r3RcQw//aG8uLJ1U9c9dGYL00bx8p8vEIeiXZ35l0fUj8zvVaXEyPaaGUEnkbwCC oXaA56VVACSkUQFshlrThp5D8MzqtTh80RCt6YYZUO6YNuH0g5gohOUpnPqALxGM 6vQI/btUHeMjmZpuVDyF39tJp7FlnygTLWltdB9LHZFUN/cSTRsQDSvyRCmEd7ir v7f/fpYsg5UB65B6Q1P94LlaLQF7MXehPE4z4hno0836RiSLRVjImqEEUQ6YJJ05 HtCSvviYtjbQXz9zh/062PqRdrNLXXfibyTvHtw985imge+WUy1pV+F0HKza3w2h nEceP+O83cxxeT5rpuxDYUypZHuoLDLeb/S/y4JQulQ09x+j0m+eK2VkfCdftCQ1 rdNGXXi3+OCZ/ER+moIZj/RwEnDIuGB2Msrv+XGPDbtBwOicoTTX7MxOD2lC4mir bMW1ovLZ9ceOCpfEwpL4MaS7SYwj7L/XMQ/k9b8mLINS7CibbIAp8Q7ivpGbC4YF Oi1zr/QiqGhN70Hw5FkTXnCRq7cIn76eozDXrhOWkJPK5ZIQxpcpfZY3nbhDSQwo 0dR0qZZTYAHkYTsejHJmZnsVvxn0eJ+RDbJ6eSQWTRRLdqRgMWpjGHO4gyl0Nk9w NX1HPmVIP8FavswFo+ZL4RkZ/QfB1vFUcfYq5sWzzpX9H1cnBXo= =rS+S -----END PGP SIGNATURE----- --tb2cum6aarkak5h3--