Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp643191imm; Tue, 5 Jun 2018 01:56:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKHKNakGBdiE3ei4TCq0SginN3t2hsiBuFBSOgu8gunfrV3k+Dkfc63YlCAPG8d+7Z10WDl X-Received: by 2002:a17:902:8604:: with SMTP id f4-v6mr25817802plo.4.1528189014462; Tue, 05 Jun 2018 01:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528189014; cv=none; d=google.com; s=arc-20160816; b=DTmvzFsFY8LNU0M6eBjFjHvdcxwq+1lSwxyjpo9a2ezamjm9oBd/Gyu+tSFmtcNEsM QzLn5FaQ6Rzy8HGXk+TJLut/ibM+YUubbvZA0SnrKA4YGZnQHytfVvCv8DEU8LnLfUE0 2gkqR9+GmDTloxz+2QfjF8XZST3Rt1Y7MEq+oMwBcO14krlF9w7KmRia0e2AXCcym5Jo CSIdECspvzdX875A2LnwJP9gEeumOANKWLoL3UXHWCYtFEvRAsJbLNibBGGDJnUKMeBs Aiqzct3AHNxTrc1bq0ox9s3cb0JNjVyK7yZFXhCAvZdfINM5RJp3WLJhYOp6fdZeX/uz /IkQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=aDsWjFNuqBMIqn/vNUELvkmINJBYwrLQNX5r2ecILbs=; b=UmRBLoXOU0vejFe2DC9Lumk0Pt1L8kJnTSukmrHu+olsWMKMY8LmpXSdYDyS2JvVyZ ppOARP5cRGkU8gVIL3iGIeGw8KE8r63+0UyFMeeSHfjqjM0tb4AX3L8oXS96fSGyX046 D1ZheL/z7k33T58ws5H1VMTl+LgtHDRn5+gzdPlWrdXPb6xzr/iPLU22W0482Wn8oz5o /i7YDGVq8+34swNkMJ5u+ipfvMHSP0EgjluTD1m/laNO8jTCqSqq/3JqF0o41AXxvwo8 xPcIfbuJf2o7A+n5wV7G9X+e7dGqMbGIEsQVnjb78QPPgeh5XfuwNxu3n/gAdeCK5g5V 99Ig== 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 v8-v6si48038218plo.306.2018.06.05.01.56.39; Tue, 05 Jun 2018 01:56:54 -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 S1751870AbeFEIyk (ORCPT + 99 others); Tue, 5 Jun 2018 04:54:40 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35851 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751617AbeFEIyi (ORCPT ); Tue, 5 Jun 2018 04:54:38 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0859FCD85C029; Tue, 5 Jun 2018 16:54:32 +0800 (CST) Received: from [127.0.0.1] (10.142.68.147) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.382.0; Tue, 5 Jun 2018 16:54:32 +0800 Subject: Re: [PATCH] usb: xhci: remove the code build warning To: Greg KH CC: , , , , , References: <1528216500-14172-1-git-send-email-gengdongjiu@huawei.com> <20180605084019.GA8665@kroah.com> From: gengdongjiu Message-ID: Date: Tue, 5 Jun 2018 16:54:17 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180605084019.GA8665@kroah.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.142.68.147] 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/6/5 16:40, Greg KH wrote: > On Wed, Jun 06, 2018 at 12:35:00AM +0800, Dongjiu Geng wrote: >> Initialize the 'err' variate to remove the build warning, >> the warning is shown as below: >> >> drivers/usb/host/xhci-tegra.c: In function ‘tegra_xusb_mbox_thread’: >> drivers/usb/host/xhci-tegra.c:552:6: warning: ‘err’ may be used uninitialized in this function [-Wuninitialized] >> drivers/usb/host/xhci-tegra.c:482:6: note: ‘err’ was declared here >> >> Signed-off-by: Dongjiu Geng >> --- > > Any hint as to what commit caused this warning to show up? It seems below commit: commit e84fce0f8837496a48d11086829bdbe170358b7a Author: Thierry Reding Date: Thu Feb 11 18:10:48 2016 +0100 usb: xhci: Add NVIDIA Tegra XUSB controller driver Add support for the on-chip XUSB controller present on Tegra SoCs. This controller, when loaded with external firmware, exposes an interface compliant with xHCI. This driver loads the firmware, starts the controller, and is able to service host-specific messages sent by the controller's firmware. The controller also supports USB device mode as well as powergating of the SuperSpeed and host-controller logic when not in use, but support for these is not yet implemented. Based on work by: Ajay Gupta Bharath Yadav Andrew Bresticker Cc: Mathias Nyman Cc: Greg Kroah-Hartman Acked-by: Mathias Nyman Signed-off-by: Thierry Reding > > thanks, > > greg k-h > > . >