On Fri, Nov 20, 2020 at 08:46:45AM -0800, Kamal Mostafa wrote:
From: Martin Blumenstingl martin.blumenstingl@googlemail.com
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 Minas.Harutyunyan@synopsys.com Reported-by: kernel test robot lkp@intel.com Reported-by: Jens Axboe axboe@kernel.dk Signed-off-by: Martin Blumenstingl martin.blumenstingl@googlemail.com Signed-off-by: Felipe Balbi balbi@kernel.org Cc: stable@vger.kernel.org # 5.9.x Signed-off-by: Kamal Mostafa kamal@canonical.com
Queued up, thanks!