Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp758773imm; Fri, 21 Sep 2018 07:51:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYmN5itbZ1FQCyRkwSdoB0kac5M70Wx3NXdFep+FkvkY0CCKf6PatQOcSIzsMPkB7CmF+dd X-Received: by 2002:a17:902:b03:: with SMTP id 3-v6mr12697973plq.156.1537541462626; Fri, 21 Sep 2018 07:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537541462; cv=none; d=google.com; s=arc-20160816; b=X1gXiMHj3vflB7UzQeqR+FHIwClDuVfBw/Vg5AbOnjSeilL9nmiJgZjvu32vWLB9CC Lr4tcvU/Zlq6HTCp/oFl02xlyPCvRPzdCFivJIiaw7UcqmtTSzQlz0JHjgw/HHa3tER8 jPO4MQCRb3n+l1qhccHQgC3Xqn4/z+zwIiq+r+nF+nPJOMz/nuNVK6dzcpv6xd3pSjTj 2eHRNE1g5opP3qf3e1Gkwo0xHm0Y3LOXRK+X+rmwo08yTovxC99j9m+xh7jc4OmnyEsb +42dCRkhdoAq8sZAS1grspTJ9ffuq9SXEGwFvwGwOJjfa9IDGPDV8VUOW8RM8KZ/PP/1 9hhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=WOE8iHxbPQDp16x71n8oPB6oz9ijcnMUyWWaCoY+snw=; b=qMyqyXhBf82M9sbmlB6VUPt/9Kp1NXfCrAE/4HJdA8tzd0ZWrAaojZAAJ5AwQDYIfZ AJqosYnwm9nHjBxOTGmCrz8ItWFEiiAUdlRDg4p13WUdR+lx/PnKHzqfeBxR8bC/4TPi my8vDnri24NhCQMG4jD9KQfi3zUP8dg7jRcD/V8nkxpaVOpC2TB9fKVRecFb/hMK5bvZ bxvrLN+p58m93sRRBlL390+4PM7dp0R0GMSxnB555fTPxvIFcnb0axQF+wpbSjCF4vIA AfQx8mDdmdGrujeuiySbCunyFUoLgwclfgGiMOaBG1gq5FO7E/T/lBCc2jeUVUWwWcvI uWPA== 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 n62-v6si4639798pga.609.2018.09.21.07.50.46; Fri, 21 Sep 2018 07:51:02 -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 S2390204AbeIUUiZ (ORCPT + 99 others); Fri, 21 Sep 2018 16:38:25 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:34230 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728313AbeIUUiZ (ORCPT ); Fri, 21 Sep 2018 16:38:25 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 30E042337D1E1; Fri, 21 Sep 2018 22:49:09 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.399.0; Fri, 21 Sep 2018 22:49:09 +0800 Message-ID: <5BA504E4.90607@huawei.com> Date: Fri, 21 Sep 2018 22:49:08 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Maxime Ripard CC: , , Subject: Re: [PATCH] drm: sun4i: Fix a uninitialized variable warning. References: <1537255520-41614-1-git-send-email-zhongjiang@huawei.com> <20180919084719.6ymf6h4eftomfab3@flea> <5BA2106C.2080007@huawei.com> <20180921142654.ahuhswypvscjsuyj@flea> In-Reply-To: <20180921142654.ahuhswypvscjsuyj@flea> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/21 22:26, Maxime Ripard wrote: > 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 be 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. Yep, it rarely occur. I just happen once. Thank you for reply. Sincerely, zhong jiang > Thanks! > Maxime >