]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: usb: gadget: ether: Fix compiler warning
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 17 Jan 2017 03:21:22 +0000 (08:51 +0530)
committerMarek Vasut <marek.vasut@gmail.com>
Tue, 17 Jan 2017 09:26:46 +0000 (10:26 +0100)
commit13d07f6e2e77ed5dc6c7000945ec6d7850005df4
treea0f9a1f14a31a81193a49455fcdc28b9bc146e7b
parent0f2e97ea8df92ecfb378d2cfc8c1b7c727ce6a38
drivers: usb: gadget: ether: Fix compiler warning

Latest gcc 6.2 compiler is throwing the below warning for am335x_baltos_defconfig
drivers/usb/gadget/ether.c:501:17: warning: 'mdlm_detail_desc' defined but not used [-Wunused-const-variable=]
 static const u8 mdlm_detail_desc[] = {

Guard mdlm_detail_desc with CONFIG_USB_ETH_SUBSET to avoid the warning

Reported-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/usb/gadget/ether.c