From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 25 Nov 2016 23:32:23 +0100 Subject: [U-Boot] [PATCH 02/14] spl: mmc: Fix build without LIBCOMMON_SUPPORT In-Reply-To: <20161125223235.3434-1-marex@denx.de> References: <20161125223235.3434-1-marex@denx.de> Message-ID: <20161125223235.3434-2-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de If CONFIG_SPL_LIBCOMMON_SUPPORT is undefined, the following error will happen, so fix it. In file included from common/spl/spl_mmc.c:11:0: common/spl/spl_mmc.c: In function ?spl_mmc_load_image?: include/spl.h:18:30: error: label at end of compound statement #define MMCSD_MODE_UNDEFINED 0 ^ common/spl/spl_mmc.c:335:7: note: in expansion of macro ?MMCSD_MODE_UNDEFINED? case MMCSD_MODE_UNDEFINED: ^ Signed-off-by: Marek Vasut Cc: Pantelis Antoniou Cc: Tom Rini --- common/spl/spl_mmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 0b681c2..43c1030 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -343,10 +343,12 @@ static int spl_mmc_load_image(struct spl_image_info *spl_image, break; case MMCSD_MODE_UNDEFINED: -#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT default: + { +#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT puts("spl: mmc: wrong boot mode\n"); #endif + } } return err; -- 2.10.2