diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-03 14:10:19 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-18 22:23:52 +0000 |
commit | b650e774a17f7de78ff3927b0a48f2e373ece787 (patch) | |
tree | 70744cbd0d2f8f18f0e1758ecb89423c337c3cb1 | |
parent | e8ad52be94fde3e99162c33ac94558e797a733e5 (diff) | |
download | rockbox-b650e774a1.tar.gz rockbox-b650e774a1.zip |
kernel: Fix unsafe cross-section reference in init_tick()
This is a small wrapper function which calls other init code
and is only called from init code; mark it INIT_ATTR to fix
the unsafe reference.
Change-Id: I5525461e9fd63955c6396d3151d209c457b3d798
-rw-r--r-- | firmware/kernel/include/tick.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/kernel/include/tick.h b/firmware/kernel/include/tick.h index 9810f4a1e5..d1933dbe9b 100644 --- a/firmware/kernel/include/tick.h +++ b/firmware/kernel/include/tick.h @@ -23,7 +23,7 @@ #include "config.h" #include "system.h" /* for NULL */ -extern void init_tick(void); +extern void init_tick(void) INIT_ATTR; #define HZ 100 /* number of ticks per second */ |