From d20f189db45e8b601dd68ea3abbd3535ca890765 Mon Sep 17 00:00:00 2001 From: Soren Brinkmann Date: Wed, 7 Jun 2017 09:51:26 -0700 Subject: [PATCH] tegra: Fix build errors The 'impl' variable is guarded by the symbol DEBUG, but used in an INFO level print statement. INFO is defined based on LOG_LEVEL. Hence, builds would fail when - DEBUG=0 && LOG_LEVEL>=LOG_LEVEL_INFO with a variable used but not defined - DEBUG=1 && LOG_LEVEL --- plat/nvidia/tegra/common/tegra_bl31_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/nvidia/tegra/common/tegra_bl31_setup.c b/plat/nvidia/tegra/common/tegra_bl31_setup.c index c8fc28ac..bc168574 100644 --- a/plat/nvidia/tegra/common/tegra_bl31_setup.c +++ b/plat/nvidia/tegra/common/tegra_bl31_setup.c @@ -122,7 +122,7 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2, { plat_params_from_bl2_t *plat_params = (plat_params_from_bl2_t *)plat_params_from_bl2; -#if DEBUG +#if LOG_LEVEL >= LOG_LEVEL_INFO int impl = (read_midr() >> MIDR_IMPL_SHIFT) & MIDR_IMPL_MASK; #endif image_info_t bl32_img_info = { {0} }; -- 2.30.2