MLK-20464 mx7ulp_evk: Fix build warning

Get build warning below because the CONFIG_SERIAL_TAG is not defined.

drivers/usb/gadget/f_fastboot.c: In function ‘fastboot_setup’:
drivers/usb/gadget/f_fastboot.c:1768:2: warning: ‘serialnr.high’ is used
uninitialized in this function [-Wuninitialized]
   sprintf(serial, "%08x%08x", serialnr.high, serialnr.low);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 drivers/usb/gadget/f_fastboot.c:1768:2: warning: ‘serialnr.low’ is used
uninitialized in this function [-Wuninitialized]

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 5a438e8daa)
This commit is contained in:
Ye Li 2018-11-26 00:36:48 -08:00
parent 12eca96f6f
commit 6fc914b2da
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@
#define CONFIG_CMD_FUSE
#define CONFIG_MXC_OCOTP
#define CONFIG_SERIAL_TAG
#define CONFIG_BOUNCE_BUFFER
#define CONFIG_FSL_ESDHC
#define CONFIG_FSL_USDHC