summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/zephyr_hooks_shim.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/zephyr_hooks_shim.h')
-rw-r--r--zephyr/shim/include/zephyr_hooks_shim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/include/zephyr_hooks_shim.h b/zephyr/shim/include/zephyr_hooks_shim.h
index f1c25c6e8f..3e0c43088f 100644
--- a/zephyr/shim/include/zephyr_hooks_shim.h
+++ b/zephyr/shim/include/zephyr_hooks_shim.h
@@ -55,7 +55,7 @@ struct zephyr_shim_hook_list {
* See include/hooks.h for documentation.
*/
#define DECLARE_HOOK(_hooktype, _routine, _priority) \
- STRUCT_SECTION_ITERABLE_ALTERNATE( \
+ static const STRUCT_SECTION_ITERABLE_ALTERNATE( \
zephyr_shim_hook_##_hooktype, zephyr_shim_hook_info, \
_cros_hook_##_hooktype##_##_routine) = { \
.routine = _routine, \