Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp483975imm; Wed, 19 Sep 2018 02:03:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ7E+J1qpb8EFt5C46f/3yYdDSk6Tvwp2zw+xnAXudImKy5eSmm9RUpn/opsIStb1oy8uJn X-Received: by 2002:a63:1204:: with SMTP id h4-v6mr31997789pgl.115.1537347832564; Wed, 19 Sep 2018 02:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537347832; cv=none; d=google.com; s=arc-20160816; b=y2PJ9IkMgcb/iluuU5h6H+YnergAHgwYWwyd6+WeDdCscAIoY4khmA4eYpo7Io8zj1 SECbYALgApNPM4DpHJ1INBDcBm5m0RVNycxoM6KdzY93G4f551U5T5Sh1sDC2y3PeC/T ebTbKoC/6Fcutfwxu7nldDbbPbhX+os04gJKwhxveqjhBqUYTSpRYVEQirP/jlkUANme vj6wR6muNhAKRHXbCoQs0i6lI90/4Q0Bq8ioyDeDCKXmenryfYtcQiiz6cL8Q4phc+h1 VQTpD/NE9bG5oKMr+wH5RuJ9b0gsY2A+23UC/0OE0G6RdiBWs8NTvN/Ksdobs544GQHS WCLw== 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=C//Bm4Zq+6vnFbVrnNZwT+dPFJ6pR4CPTBl5aiRZKeQ=; b=MWIliKm0KQ3feMYTY9JoZYo/wWjHBQkRrLLBjwfaWM1qGxPdlQAU+aUb9YNl72jbct OcrJnXK+uDKQnQj+pIEPCKF9kEKgeJByB6RJbAc4KGKQymFCQX0ozwJlrbNaZIjLzyBK rantlU78TeR392Wu3QEmAifvJI5PsdFYY1VTgUGGKhZGwVobkrh5uqaY5ZgntqQZ7KGb m6PjmAkpYtmIzsSaz+fuxcsY9dWHRBXeJrZ0gSUEXHQzhAh3dZWukCsMQiP3CUmxT04M 4bqgwBmvlxfnIG8h0xqgYNjUdyiRdcfD6HrS1c8pr1yiLQLiv6pUF9L7ta8GGjFGvDD0 9f0g== 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 a23-v6si19635353pgd.235.2018.09.19.02.03.37; Wed, 19 Sep 2018 02:03:52 -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 S1731217AbeISOie (ORCPT + 99 others); Wed, 19 Sep 2018 10:38:34 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12190 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727056AbeISOid (ORCPT ); Wed, 19 Sep 2018 10:38:33 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 972C65B6BF325; Wed, 19 Sep 2018 17:01:35 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.399.0; Wed, 19 Sep 2018 17:01:33 +0800 Message-ID: <5BA2106C.2080007@huawei.com> Date: Wed, 19 Sep 2018 17:01:32 +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> In-Reply-To: <20180919084719.6ymf6h4eftomfab3@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/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. > > Maxime > I indeed hit the issue. the gcc version is gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Thanks, zhong jiang