Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1310962pxu; Mon, 23 Nov 2020 18:02:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxM4LM5T0sezKJ8PXLEzjUBwu2RCgSeHQNj7/cJsBm09jZKFLZyvrtV6S7T7AN6w2373u5+ X-Received: by 2002:a17:906:a385:: with SMTP id k5mr2278129ejz.492.1606183327622; Mon, 23 Nov 2020 18:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606183327; cv=none; d=google.com; s=arc-20160816; b=qaN2f67PfhGLPHd10vWtJJumrysvmIiNCX1B0Yyhn11QOKLupLl7o6l+IEVR41qJ2j CsfbEmJDVe49gg0xIrTn0BlBIOIY5dgIC2zazlq8aHBQ0mf9on6gDLsrbdhQyJdOCA4U j6cgMBp2ZCNOLcj9BPJTv4Gdm37LENjgoJmrbp9wRcx4Xv2jhgDv7HS/+3J6LtfGMWas IlKwS4/2SHECe+ab7eHt5tofCsscxARUhoZdrMJSa9+HQTR1NhlpDg7o9S512nP9g8so 2Z4MgqWVoFVohu8OMF8gdQ1jupcM01RI3FGbOP46Ys2Bmi/JUWszeFzz6/IJBRm+0TZM ZyvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xv1W/fUcc7PR/sy31iwAsDKXDj5HB1M194Iqh/b2HrM=; b=akQexGKQHLTrHfn5vG1AmKiH5FXJBKdtDsCb8rvYrQUESa/f4mPhPe+WnkxQWZ6ux+ iiwWzjmoMMiUGJUFCBm5xVa53iCTadEqTKg9l2HKPFrs/8xyRFwWl1LoVkrRfa/kIfzC SfpRm/C6Sz9TPPyz88GtX6cZKgb3+dOyVtFNHaXUPU4eOnoZri8/RAmTYWPb5992ll+T lmikDpMMLw0+vmel1k6Afk84trCibHGZ4fYluG8I1YX/LPyzwHpxXCMwtM8jB7q5Meo9 ZklzSzWa/OfmNDf0QeMH3QoGYuaT1omHYHBooOW4ugkUhMPbx1urP4wsMBMb0ObizB2N TYVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Fvqh4ma9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si3884800ejh.235.2020.11.23.18.01.44; Mon, 23 Nov 2020 18:02:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Fvqh4ma9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731741AbgKWMph (ORCPT + 99 others); Mon, 23 Nov 2020 07:45:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:57526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733194AbgKWMoQ (ORCPT ); Mon, 23 Nov 2020 07:44:16 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 9F34A20857; Mon, 23 Nov 2020 12:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135456; bh=L7ABgRME1Vc96WG4/23UoEOOsHtXh1dUYdZRtjobXOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fvqh4ma9RUnCoyT+enOer2/bjBsmbdKx+eYyrTeRx6gIbgHbjGxax2ii7mcrjd0PG delVfUVUqfR5W6VQIwA4wgyqkDfuddLvcDKruTnkiUe7zSSlkzzmkJzqudNqyQEqX1 D1Au7JIlUnhhrEj9G12mID1oaM/Y306BuhFrxkM0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Minas Harutyunyan , kernel test robot , Jens Axboe , Martin Blumenstingl , Felipe Balbi , Kamal Mostafa , Sasha Levin Subject: [PATCH 5.9 074/252] usb: dwc2: Avoid leaving the error_debugfs label unused Date: Mon, 23 Nov 2020 13:20:24 +0100 Message-Id: <20201123121839.163614494@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121835.580259631@linuxfoundation.org> References: <20201123121835.580259631@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Blumenstingl commit 190bb01b72d2d5c3654a03c42fb1ad0dc6114c79 upstream. The error_debugfs label is only used when either CONFIG_USB_DWC2_PERIPHERAL or CONFIG_USB_DWC2_DUAL_ROLE is enabled. Add the same #if to the error_debugfs label itself as the code which uses this label already has. This avoids the following compiler warning: warning: label ‘error_debugfs’ defined but not used [-Wunused-label] Fixes: e1c08cf23172ed ("usb: dwc2: Add missing cleanups when usb_add_gadget_udc() fails") Acked-by: Minas Harutyunyan Reported-by: kernel test robot Reported-by: Jens Axboe Signed-off-by: Martin Blumenstingl Signed-off-by: Felipe Balbi Cc: stable@vger.kernel.org # 5.9.x Signed-off-by: Kamal Mostafa Signed-off-by: Sasha Levin --- drivers/usb/dwc2/platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index b28e90e0b685d..8a7f86e1ef73a 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -590,10 +590,13 @@ static int dwc2_driver_probe(struct platform_device *dev) #endif /* CONFIG_USB_DWC2_PERIPHERAL || CONFIG_USB_DWC2_DUAL_ROLE */ return 0; +#if IS_ENABLED(CONFIG_USB_DWC2_PERIPHERAL) || \ + IS_ENABLED(CONFIG_USB_DWC2_DUAL_ROLE) error_debugfs: dwc2_debugfs_exit(hsotg); if (hsotg->hcd_enabled) dwc2_hcd_remove(hsotg); +#endif error_init: if (hsotg->params.activate_stm_id_vb_detection) regulator_disable(hsotg->usb33d); -- 2.27.0