From 708ce78b2bfae5664b1238e17b086c88cac55bdc Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 2 Jun 2014 08:35:03 -0700 Subject: [PATCH] broadwell: Fix compilation failure when loglevel is lowered The ME debug info is not compiled in when the loglevel is turned down to save the space of all the strings so the contents in me_status.c should not be included either. BUG=chrome-os-partner:28234 TEST=Build and boot with LOGLEVEL=BIOS_ERROR Change-Id: Ibef46d0da038e13b0de0a29ab038ab6fce395730 Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/202357 Reviewed-by: Aaron Durbin --- src/soc/intel/broadwell/me_status.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/soc/intel/broadwell/me_status.c b/src/soc/intel/broadwell/me_status.c index 476268f61a..40078b97d4 100644 --- a/src/soc/intel/broadwell/me_status.c +++ b/src/soc/intel/broadwell/me_status.c @@ -26,6 +26,8 @@ #include #include +#if (CONFIG_DEFAULT_CONSOLE_LOGLEVEL >= BIOS_DEBUG) + /* HFS1[3:0] Current Working State Values */ static const char *me_cws_values[] = { [ME_HFS_CWS_RESET] = "Reset", @@ -276,3 +278,4 @@ void intel_me_status(void) } printk(BIOS_DEBUG, "\n"); } +#endif