Module: kamailio
Branch: 6.0
Commit: 43e5af11f3a0c91a28b85095038812e281b37500
URL: 
https://github.com/kamailio/kamailio/commit/43e5af11f3a0c91a28b85095038812e281b37500

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-02-20T09:13:46+01:00

core: skip warning for no-native locks on aarch64

---

Modified: src/Makefile.defs
Modified: src/core/atomic_ops.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/43e5af11f3a0c91a28b85095038812e281b37500.diff
Patch: 
https://github.com/kamailio/kamailio/commit/43e5af11f3a0c91a28b85095038812e281b37500.patch

---

diff --git a/src/Makefile.defs b/src/Makefile.defs
index d7520fe0561..1a6b09c5548 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -1883,7 +1883,9 @@ ifeq ($(OS), linux)
        # check for >= 2.5.70
        ifeq ($(shell [ $(OSREL_N) -ge 2005070 ] && echo has_futex), has_futex)
                ifeq ($(use_futex), yes)
-                       C_DEFS+=-DUSE_FUTEX
+                       ifneq ($(ARCH), aarch64)
+                               C_DEFS+=-DUSE_FUTEX
+                       endif
                endif
        endif
        ifeq ($(NO_SELECT),)
diff --git a/src/core/atomic_ops.h b/src/core/atomic_ops.h
index 1d25af50841..b8bfa9164e3 100644
--- a/src/core/atomic_ops.h
+++ b/src/core/atomic_ops.h
@@ -176,7 +176,9 @@
 
 /*! \brief if no native operations, emulate them using locks */
 #if !defined HAVE_ASM_INLINE_ATOMIC_OPS || !defined HAVE_ASM_INLINE_MEMBAR
+#ifndef __CPU_aarch64
 #warning "no native atomic ops, atomic_unknown.h will be used"
+#endif
 #include "atomic/atomic_unknown.h"
 
 #endif /* if HAVE_ASM_INLINE_ATOMIC_OPS */

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to