summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/system.c b/common/system.c
index 047b96e799..6f64960170 100644
--- a/common/system.c
+++ b/common/system.c
@@ -1020,7 +1020,7 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd)
chip_save_reset_flags(chip_read_reset_flags() &
~EC_RESET_FLAG_AP_IDLE);
}
- /* Intentional fall-through */
+ __fallthrough;
case EC_REBOOT_HIBERNATE:
if (!IS_ENABLED(CONFIG_HIBERNATE))
return EC_ERROR_INVAL;
@@ -1739,7 +1739,7 @@ static enum ec_status host_command_reboot(struct host_cmd_handler_args *args)
}
DECLARE_HOST_COMMAND(EC_CMD_REBOOT_EC, host_command_reboot, EC_VER_MASK(0));
-int system_can_boot_ap(void)
+test_mockable int system_can_boot_ap(void)
{
int soc = -1;
int pow = -1;