From 4ea54827a7efe44e7b024347c3aa5a58354b23d7 Mon Sep 17 00:00:00 2001
From: Terraneo Federico <fede.tft@miosix.org>
Date: Thu, 30 Jan 2025 18:20:50 +0100
Subject: [PATCH] Add inline and fix compiling on non-SMP hardware

---
 miosix/interfaces/interrupts.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/miosix/interfaces/interrupts.h b/miosix/interfaces/interrupts.h
index b3d3596d..da381076 100644
--- a/miosix/interfaces/interrupts.h
+++ b/miosix/interfaces/interrupts.h
@@ -230,13 +230,13 @@ inline void fastEnableInterrupts() noexcept;
  */
 bool areInterruptsEnabled() noexcept;
 
-void globalInterruptLock() noexcept;
-void globalInterruptUnlock() noexcept;
+inline void globalInterruptLock() noexcept;
+inline void globalInterruptUnlock() noexcept;
 
 #ifndef WITH_SMP
 
-void globalInterruptLock() {}
-void globalInterruptUnlock() {}
+inline void globalInterruptLock() noexcept {}
+inline void globalInterruptUnlock() noexcept {}
 
 #endif
 
-- 
GitLab