From b650e774a17f7de78ff3927b0a48f2e373ece787 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 3 Dec 2022 14:10:19 +0000 Subject: [PATCH] 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 --- firmware/kernel/include/tick.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */