From 6fc914b2da6810eb392bcb6de20b9cd7baf95e7f Mon Sep 17 00:00:00 2001 From: Ye Li Date: Mon, 26 Nov 2018 00:36:48 -0800 Subject: [PATCH] MLK-20464 mx7ulp_evk: Fix build warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 5a438e8daa7dfe9ae8c8e782a2656e9329c7d4a1) --- include/configs/mx7ulp_evk.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/mx7ulp_evk.h b/include/configs/mx7ulp_evk.h index fd5c6716f7..fb4e244c43 100644 --- a/include/configs/mx7ulp_evk.h +++ b/include/configs/mx7ulp_evk.h @@ -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