[U-Boot] [PATCH v2 1/3] board: ti: am57xx-evm: fix build warnings

Sekhar Nori nsekhar at ti.com
Fri Nov 25 06:46:20 CET 2016


On Friday 25 November 2016 09:11 AM, Lokesh Vutla wrote:
> 
> 
> On Thursday 24 November 2016 07:06 PM, Sekhar Nori wrote:
>> USB1 is not used on AM57xx GP EVM in device mode.
>> Enabling DWC3 USB support for AM57xx EVM gives
>> the following warnings:
>>
>>   CC      board/ti/am57xx/board.o
>> ../board/ti/am57xx/board.c:448:27: warning: 'usb_otg_ss1' defined but not used [-Wunused-variable]
>>  static struct dwc3_device usb_otg_ss1 = {
>>                            ^
>> ../board/ti/am57xx/board.c:455:32: warning: 'usb_otg_ss1_glue' defined but not used [-Wunused-variable]
>>  static struct dwc3_omap_device usb_otg_ss1_glue = {
>>                                 ^
>> ../board/ti/am57xx/board.c:461:33: warning: 'usb_phy1_device' defined but not used [-Wunused-variable]
>>  static struct ti_usb_phy_device usb_phy1_device = {
>>
>> Fix it by getting rid of USB1 related structures from
>> board.c. They can be added back if there is a need for
>> them.
>>
>> Signed-off-by: Sekhar Nori <nsekhar at ti.com>
>> Reviewed-by: Lokesh Vutla <lokeshvutla at ti.com>
> 
> hmm.. Isn't this already taken care by commit ca39bd8ce1343 ("am57xx:
> Remove unused variable warnings) ?

You are right. I sent these based off v2016.11. I will rebase to latest
u-boot/master and resend.

Thanks,
Sekhar


More information about the U-Boot mailing list