Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp735044imm; Fri, 21 Sep 2018 07:27:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnEC6QM72w2u6i0Q7S8y0Z5KjJfyWz604GWS4MSfvgTxGAWNGX5etZDetTiXIKoYG3+WCE X-Received: by 2002:a62:3306:: with SMTP id z6-v6mr46556003pfz.85.1537540075079; Fri, 21 Sep 2018 07:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537540075; cv=none; d=google.com; s=arc-20160816; b=C1g9O1CTPt+jKsoNMXaQelnsExUtlLOW+Xrxp+Ucxa28WTygPMEccLDsQL4dN/hwcU vLeK0Q6WLnQikl+CXJYyj7YnGgvNx2OVAeNtYiPQZmzjL69yCY43lx++XObDzQQY0+u0 I7JAc1Ou6hIq0FQx5w1NbIthSEJEbkUOu9wyVMRKPCKwi1O0k4tgF/Ag1NstvowtI1Zp wWx2gOTASVuHuZySXDnSJWTXZhW8QDFnaiopAHufGbMZWm6dKtpujUpJMAFFPqkyfhQz W1LnGVcQX67PVT/QcQMW/A2RXe4iERwkMoc7MbUVuDMjsPN39Wrhb/tOgJxqqDgj+zO3 rr+A== 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=BlspHpSbPzFKbV8fS5mJRc6po4QPRM52gSTHU0dPPnk=; b=Xh1n6BKQR+f8qi47sPXZV/xryf1DBQEbbJY5OHN3c4pdsmGQggCMzdBkBIuAXDu6sE Y4hnFB5Y8WZBhOamTLXSC0ClftgY3OBp5q9Mzd3aTZ12kD0puLxFIW68n/NdKaoJOG+M 90o7G5R+AZhC+La06dKMcXNlhmBGmPlV6qXxeVBmQTjWFZOCHL7GxT8VYmhXaH9R3Gov Vfwv9vOMr5A2kymRsOWAlOwNuYGwye22Ao9k2lft/y28voAWgmPWRtdzSk4LLP0bhzPL nn7TNuuzKjsZnWfg+p5ykXgwExfPhg6cyNbZkXXwkZvfdNrWxLPozaGn868xr48Zsy1A 2+og== 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 t33-v6si26396429pgm.679.2018.09.21.07.27.39; Fri, 21 Sep 2018 07:27:55 -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 S2389926AbeIUUQX (ORCPT + 99 others); Fri, 21 Sep 2018 16:16:23 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41476 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728365AbeIUUQX (ORCPT ); Fri, 21 Sep 2018 16:16:23 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 22BCE20901; Fri, 21 Sep 2018 16:27:13 +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-42-80.w90-88.abo.wanadoo.fr [90.88.160.80]) by mail.bootlin.com (Postfix) with ESMTPSA id D5456204AE; Fri, 21 Sep 2018 16:26:53 +0200 (CEST) Date: Fri, 21 Sep 2018 16:26:54 +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: <20180921142654.ahuhswypvscjsuyj@flea> References: <1537255520-41614-1-git-send-email-zhongjiang@huawei.com> <20180919084719.6ymf6h4eftomfab3@flea> <5BA2106C.2080007@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ayc3oltgnjlkh76l" Content-Disposition: inline In-Reply-To: <5BA2106C.2080007@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 --ayc3oltgnjlkh76l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 19, 2018 at 05:01:32PM +0800, zhong jiang wrote: > On 2018/9/19 16:47, Maxime Ripard wrote: > > On Tue, Sep 18, 2018 at 03:25:20PM +0800, zhong jiang wrote: > >> Fix the following compile warning: > >> > >> drivers/gpu/drm/sun4i/sun4i_tcon.c:1088: warning: 'has_lvds_alt' may b= e used uninitialized in this function [-Wmaybe-uninitialized] > >> bool has_lvds_rst, has_lvds_alt, can_lvds; > >> > >> 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. > > I indeed hit the issue. the gcc version is > gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 I've tested with 4.* gcc, and it didn't report any error. It seems to be a false positive for this particular version, so there's no need to merge that patch. If more people are affected, we'll obviously do something about it though. Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ayc3oltgnjlkh76l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAluk/60ACgkQ0rTAlCFN r3TacQ//bSkkQxX7E4oJAxcF8drs6U518u9hj56SRGi/1OvPryJOC5C6C05lFaju 24Yr/qAa0drigSn7HAWqNZ8jXpHl1L2ckAwXxAbwoiq0LWGcylLr5KpDuvB7UauP 9tmir0ioLDJgm8U84CX8bHBzveYtScEkNJtiURCqc5B6S01L9NgCGI9Kn1D8yNDm vgLS4rBK+Si3HAVFk8sNfegI5mV6LRD4ktHmz6taaG4U+QwGcboEd5J8Iei4PNpv 1BP/KVNWjThWOr5KvOZSdDex21kriAarmgtjXNxKl7ZIk3mrFOfb/UQJmMYZzY7k QwaVHMGMnCWWRC6LWGlCAvXtII52GJ34LYUxCQIzk0I0aojd/1gO5BSh1+UdrGMC 3Qi8Nuk1bydued8M/dbUFwRBO09LpQKjNFIasz5nBeizls77J5wWM2g+3b8lLljn 04f6DX0RGQ77MINx37T0qVq9mpiJVbfw+1FJAyQwGKheA4G9FvmpPb6WB5icGF35 PBasmd/ummaw7bTeVS+cpey1suu1039BSLUcf26ugYlJsirRzegOHEzYAT29gSwv I8OemphfVific8+4mHIVJ9wxQCFKKlo1zu7yBrgUQjQaiGfqMV+ZQDJes+ETnl7Q SIXGlgFbN7jhgTme+VT+rAKe9IIlzAHSG9uOgrIdlxL8eb4OXbE= =5SCw -----END PGP SIGNATURE----- --ayc3oltgnjlkh76l--