summaryrefslogtreecommitdiff
path: root/zephyr/test
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2023-03-08 13:35:19 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-13 23:09:48 +0000
commitffb51adb112867b6b2367d1187cfc96d0d3fc6ac (patch)
treeaf211b2d78ab32cee4163f46ff84204579e30186 /zephyr/test
parent72a40fac54a35536366038866bd91606a368a320 (diff)
downloadchrome-ec-ffb51adb112867b6b2367d1187cfc96d0d3fc6ac.tar.gz
tasks: Remove use of IS_ENABLED in macro conditions
IS_ENABLED is not meant to be used in macro conditionals according to the documentation: "Note: This macro will only function inside a code block due to the way it checks for unknown values." BUG=None BRANCH=None TEST=Build Change-Id: I407ddfe4f75d51933c9ee4e8f2ea24ec86b47764 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4320980 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'zephyr/test')
-rw-r--r--zephyr/test/tasks/extra_tasks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/test/tasks/extra_tasks.c b/zephyr/test/tasks/extra_tasks.c
index 47b653dfb2..da89eac316 100644
--- a/zephyr/test/tasks/extra_tasks.c
+++ b/zephyr/test/tasks/extra_tasks.c
@@ -59,7 +59,7 @@ ZTEST_USER(extra_tasks, test_hostcmd_thread_mapping)
k_tid_t hostcmd_thread;
k_tid_t main_thread;
-#if IS_ENABLED(HAS_TASK_HOSTCMD)
+#ifdef HAS_TASK_HOSTCMD
#ifdef CONFIG_TASK_HOSTCMD_THREAD_MAIN
k_thread_name_set(get_main_thread(), "HOSTCMD");
#endif /* CONFIG_TASK_HOSTCMD_THREAD_MAIN */