Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2099315pxu; Sat, 17 Oct 2020 11:28:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0BU5JUzg0W3Pw7rXhKPEfcIk3dZQZ8ISkrls2XDpGyUoDreIHEafYE8KJPC+YWpBVoDFi X-Received: by 2002:a05:6402:b0c:: with SMTP id bm12mr10265387edb.108.1602959332680; Sat, 17 Oct 2020 11:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602959332; cv=none; d=google.com; s=arc-20160816; b=J/9vv0zLXHXur9u73GU7rMh8wb5zujWdyiTdLU183FPS/EgW0CMPBQdsRBuFy7GA2p OxyNEwLrufJc0FD6ogAF9JKv6/zMyASjrB5mq1RJKRm2IEmTrNxgjcvrHrYEumM4Nccd KQ7ppGohA5FIyDqCrcnqXwIU+aP3qmOqMOzGwCDqXw6aM9kDbXh3oTtC8A+E0AwYVG5g W29UgM0P1TG9TPf39X6oEoxDzeqWY5R/NsMCwow2G2SbHQaPdbppDBA3AmX71JG1MS0a kbBWCxb1R9SUFXlelm/GiIqwQrX+WOBuCjVkeArRcG2Qp4SPQBF9kRJ4MH/Br1JRWpzv u9dg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1iTzuemyXkpM0NB6MrjzDP3iYy24eeV3XKFWaqiWlow=; b=X56L72XVigR9ooqgk+3gVh6SYPUNucUe5an+gX8KCQa+cdrE9Cm/LNOsfLzEFDjTlm tkHQwaAD/bpA3wT8YCciajinzrI0IXIrJJatbt3VZo15jyB+8tqb83tBC7nx0sPyJKEn jPQ62MEnaXjckeaR5ph0IeFr08ZW5vLH24GO97XD8TRcUl0/LffL5oVodfVTckp7TKTA PBteRBYMzirA0+XR4tH+6XZI/mgp5SmBJSyFPEP+TAylMgkV15IqtR+azczRtDSFs+XE ex7ZouyymuQLkAvlLLjWb9lfcBaOswHAlX6ilW1HRTA+yeivW80hmXF22e6htgk1aASK CI2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=QE5LRD33; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o21si4237611ejr.500.2020.10.17.11.28.22; Sat, 17 Oct 2020 11:28:52 -0700 (PDT) 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=@googlemail.com header.s=20161025 header.b=QE5LRD33; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438563AbgJQQuZ (ORCPT + 99 others); Sat, 17 Oct 2020 12:50:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438056AbgJQQuZ (ORCPT ); Sat, 17 Oct 2020 12:50:25 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73C1AC061755; Sat, 17 Oct 2020 09:50:24 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id qp15so7930298ejb.3; Sat, 17 Oct 2020 09:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1iTzuemyXkpM0NB6MrjzDP3iYy24eeV3XKFWaqiWlow=; b=QE5LRD33T+2CIsxl9EkU3t1lujWDwZZv7osP9Gdqh1NX8CXp9EUAduBeMAmVmVLdr3 nd8WAGZ2Vpk8sZl6vg6Y/+rhnSF847IHQXKnhheaYBxLNZzPCNNS5rgMYvLq5548Io0p a1zHQXC31xHKUYsxqwDSbnCNwNUB4TEAxl1SWsQ0N4bdyoOUYf47tenvgvBVL6MtEOku 4ovfZFUEnXNpPO6HtZQWipgr4bpRY2lhW0MEPQRm6HRkdp8jmlE2HyOyrLhwd+XXONQO /8FBgx3W67phcYgiBYX5JuXXzGN5xLQRmgyBKFdMseZZR7vcdY6yUElBcI370pQ1ltwr 43UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1iTzuemyXkpM0NB6MrjzDP3iYy24eeV3XKFWaqiWlow=; b=ZVNUswnOdOh6IADwq23rZ0y7OT9hbof2ZADMgOSNNZ2m4ybqMKd0XDCCge0yReD3wW iftOJ0Y7iXpOYLrzdLijSRg3wd0pchQSURO8qZLR0um4uNXBh8RyxTH6fd5QCfXRLoby lZRGm1zY/I6Nwfo5JMC0tdXBLEu3rR6zdFdCNIk1G1KLyC1PNv8Re6I4yKd9vI9fcVD6 yg2ikqlTZDRhZSaX7qNYALgOB3flbsKWpkeWTkndzqAP5ZumPC/WxX8QZKfXusiSq2Tk vT94X5n3UbmDpASf7BwTl8a7mCb6yIEr3Nu5oLDk3jhZSHk5Gvj2bN/kOHrjDlJaWvnl NdSw== X-Gm-Message-State: AOAM5336I2TJ+7aQ5SmsYG1ejwWJmS1q14h4C2Jt1oU9peUjqqd/hV8B 4kbzIJJgocleqsKJHVQSE/wHib8wI98= X-Received: by 2002:a17:906:d978:: with SMTP id rp24mr9868225ejb.0.1602953421751; Sat, 17 Oct 2020 09:50:21 -0700 (PDT) Received: from localhost.localdomain (p4fd5d4ba.dip0.t-ipconnect.de. [79.213.212.186]) by smtp.googlemail.com with ESMTPSA id v14sm5533074ejh.6.2020.10.17.09.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Oct 2020 09:50:21 -0700 (PDT) From: Martin Blumenstingl To: linux-usb@vger.kernel.org, balbi@kernel.org, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, hminas@synopsys.com, axboe@kernel.dk, Martin Blumenstingl , kernel test robot Subject: [PATCH] usb: dwc2: Avoid leaving the error_debugfs label unused Date: Sat, 17 Oct 2020 18:50:12 +0200 Message-Id: <20201017165012.546729-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.28.0 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 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") Reported-by: kernel test robot Reported-by: Jens Axboe Signed-off-by: Martin Blumenstingl --- 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 e2820676beb1..5f18acac7406 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -608,10 +608,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_drd: dwc2_drd_exit(hsotg); -- 2.28.0