summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2018-08-09 09:28:58 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-09 22:04:25 -0700
commitb4972c288c229feb9f1c6d516967515f78f75425 (patch)
tree87f80d46dfdf0ffa54c1e94faabbd522caf1bbc3 /power
parent83ba3784b50162e2232da66ab4b07d8931dffaa6 (diff)
downloadchrome-ec-b4972c288c229feb9f1c6d516967515f78f75425.tar.gz
intel_x86: fix the build error when removing CONFIG_POWER_S0IX
The ec build error if the CONFIG_POWER_S0IX is removed from board.h This patch fixes the build error: power/intel_x86.c:515:13: error: 'lpc_s0ix_suspend_clear_masks' defined but not used [-Werror=unused-function] static void lpc_s0ix_suspend_clear_masks(void) ^ power/intel_x86.c:529:13: error: 'lpc_s0ix_resume_restore_masks' defined but not used [-Werror=unused-function] static void lpc_s0ix_resume_restore_masks(void) ^ BUG=none BRANCH=master TEST=1. make buildall -j 2. Removing CONFIG_POWER_S0IX from rammus/board.h, build pass Change-Id: I8c533736a7efb9f9f78ff71044431dd8a1698481 Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1168271 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/intel_x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/power/intel_x86.c b/power/intel_x86.c
index 91cd050fa9..75e06fde3b 100644
--- a/power/intel_x86.c
+++ b/power/intel_x86.c
@@ -493,6 +493,7 @@ power_board_handle_host_sleep_event(enum host_sleep_event state)
/* Default weak implementation -- no action required. */
}
+#ifdef CONFIG_POWER_S0IX
/*
* Backup copies of SCI and SMI mask to preserve across S0ix suspend/resume
* cycle. If the host uses S0ix, BIOS is not involved during suspend and resume
@@ -531,6 +532,7 @@ static void lpc_s0ix_resume_restore_masks(void)
lpc_set_host_event_mask(LPC_HOST_EVENT_SCI, backup_sci_mask);
lpc_set_host_event_mask(LPC_HOST_EVENT_SMI, backup_smi_mask);
}
+#endif
void power_chipset_handle_host_sleep_event(enum host_sleep_event state)
{