southbridge/intel/lynxpoint/me_9.x.c: Use IS_ENABLED macro
Silence unused function warnings, spotted by Clang. Change-Id: I5127893e9605ca490ff450faa92af5e9eafe8940 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6054 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
22e9e66cac
commit
7bf4f484c0
|
@ -478,12 +478,6 @@ void intel_me_mbp_clear(device_t dev)
|
|||
}
|
||||
|
||||
#if (CONFIG_DEFAULT_CONSOLE_LOGLEVEL >= BIOS_DEBUG) && !defined(__SMM__)
|
||||
static inline void print_cap(const char *name, int state)
|
||||
{
|
||||
printk(BIOS_DEBUG, "ME Capability: %-41s : %sabled\n",
|
||||
name, state ? " en" : "dis");
|
||||
}
|
||||
|
||||
static void me_print_fw_version(mbp_fw_version_name *vers_name)
|
||||
{
|
||||
if (!vers_name) {
|
||||
|
@ -496,7 +490,13 @@ static void me_print_fw_version(mbp_fw_version_name *vers_name)
|
|||
vers_name->hotfix_version, vers_name->build_version);
|
||||
}
|
||||
|
||||
#if CONFIG_DEBUG_INTEL_ME
|
||||
#if IS_ENABLED (CONFIG_DEBUG_INTEL_ME)
|
||||
static inline void print_cap(const char *name, int state)
|
||||
{
|
||||
printk(BIOS_DEBUG, "ME Capability: %-41s : %sabled\n",
|
||||
name, state ? " en" : "dis");
|
||||
}
|
||||
|
||||
/* Get ME Firmware Capabilities */
|
||||
static int mkhi_get_fwcaps(mbp_mefwcaps *cap)
|
||||
{
|
||||
|
@ -543,7 +543,7 @@ static void me_print_fwcaps(mbp_mefwcaps *cap)
|
|||
print_cap("TLS", cap->tls);
|
||||
print_cap("Wireless LAN (WLAN)", cap->wlan);
|
||||
}
|
||||
#endif
|
||||
#endif /* CONFIG_DEBUG_INTEL_ME */
|
||||
#endif
|
||||
|
||||
#if CONFIG_CHROMEOS && 0 /* DISABLED */
|
||||
|
|
Loading…
Reference in New Issue