Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp623498imm; Fri, 15 Jun 2018 03:41:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLX7oOalREWMZWvCIwSiPHQmPxG2R0eyIP3zB7RLTGe/uf6iXy7duHQho6o0CiQAseD64JS X-Received: by 2002:aa7:80cf:: with SMTP id a15-v6mr1298695pfn.19.1529059271693; Fri, 15 Jun 2018 03:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529059271; cv=none; d=google.com; s=arc-20160816; b=lbjg5VAZ67yVEUMRLPM2iVds2BTk4M1O+XRVcVzKYhMb/AATA4n4c6OlKFCFsU6FjE KZUZSH6PFjZuEOA9GVSFL09lf3yOpxypVrS9XSN1N3ZrkznO/bBnuyeRC1f+v9OBdZCI p6qe8U47EK08YTsKrCq6KJcB6e4zOo5Zs8xltpAhSOI+q041ROB47NmjjOpGvy5uVZG8 f4D8AWfqpK41wI/UIvqOSO2EuJVYhZhQ8WPj97jE3RHBidKpwFhua1TWNiedbisa8W8k 5K7Iq1oZnlMNHG5EKyInPzmibLIXT0fWQqb79r0bcBKupcEpLYNh1oTvc4B0QjwuYVNI DXFg== 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:dkim-signature:arc-authentication-results; bh=M+Pge9iu91B3ZeNpbYi2kctsNFCfv5l2poeboiQmSdA=; b=l7YWedVnLQ0sJqHcV7BI6ZTvOOLJ2fkyo9oEEOuCU4jHaJKvm7o7LBcdd0At2SfI9v uLZGtCtbV4Zz2AupJYv95ZBX35h1tSr9nYo8rNsOBCQnIlcHP+l0iuL6gEdDMm1dnlQc TWibmHzl2bxy9oi2/nl/Gogu9gmSqS9+MtBeEn7d7yJquKH8z2YxuaJtKJmtnorcJ223 Qs5xu3uHhLbQV02ZGApPx9Sp3qp/r/VR3FhC9Qesh8TnqLH14FVV2oeaK1hW7qC44vIM MfvnwB62kK/Ds5r0PeuV5tzWtXgAejDZhQKG3M+cHsWicZidqUgeUSEA0pYjcRbB9B2r 5T4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sN6t3Vbn; 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 x18-v6si7561163pff.196.2018.06.15.03.40.55; Fri, 15 Jun 2018 03:41:11 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sN6t3Vbn; 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 S965635AbeFOKk3 (ORCPT + 99 others); Fri, 15 Jun 2018 06:40:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:50994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965577AbeFOKk2 (ORCPT ); Fri, 15 Jun 2018 06:40:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 15BD320896; Fri, 15 Jun 2018 10:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529059227; bh=qOz0CApSOq69Tw93DGRvx4GXB7Sk+1cOA2noBSl6U4k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sN6t3Vbn8eePUkHjNDkR7Kxqqzp0TurUqLy0iuxngyzv6T4eRotWL8gz+5gKXJGgg nu8pHQ0EAooDvEBH85V0Ritsxno/VS945NPtsXcN1Y6aIzNAFxTJ8rz6Tscp6XeRuU RCuEgiK/Iqtq4YivDooUmp1AZY56zRCBrQomgKKw= Date: Fri, 15 Jun 2018 12:40:04 +0200 From: Greg KH To: Dongjiu Geng Cc: mathias.nyman@intel.com, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] usb: xhci: remove the code build warning Message-ID: <20180615104004.GA2993@kroah.com> References: <20180606143659.1476-1-gengdongjiu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180606143659.1476-1-gengdongjiu@huawei.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 06, 2018 at 10:36:59PM +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 > Acked-by: Thierry Reding > --- > How to reproduce: > 1. make defconfig ARCH=arm > 2. make -j100 CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm > > Then you can see below warnings: > 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 What changed from v1? Always put that below the --- line. Please fix up and resend a v3. thanks, greg k-h