From 584b7cf801f98d58aefe5a9bbc4a163aba4c1b74 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Sun, 12 Feb 2023 09:14:34 +0300 Subject: Fix build failures with `OPT = 0` due to inline functions (#19767) Co-authored-by: Joel Challis --- platforms/synchronization_util.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 platforms/synchronization_util.c (limited to 'platforms/synchronization_util.c') diff --git a/platforms/synchronization_util.c b/platforms/synchronization_util.c new file mode 100644 index 0000000000..26cf7dccf1 --- /dev/null +++ b/platforms/synchronization_util.c @@ -0,0 +1,17 @@ +// Copyright 2023 Sergey Vlasov (@sigprof) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "synchronization_util.h" + +// Generate out-of-line copies for inline functions defined in synchronization_util.h. + +#if !defined(PLATFORM_SUPPORTS_SYNCHRONIZATION) +# if defined(SPLIT_KEYBOARD) +extern inline void split_shared_memory_lock(void); +extern inline void split_shared_memory_unlock(void); +# endif +#endif + +#if defined(SPLIT_KEYBOARD) +QMK_IMPLEMENT_AUTOUNLOCK_HELPERS(split_shared_memory) +#endif -- cgit v1.2.3