Description: Mark complex shim helpers as static inline to fix undefined symbol on arm64
 C99 inline functions without static/extern do not guarantee an out-of-line
 symbol definition. When the compiler (e.g. gcc on arm64/loong64 at -O0)
 decides not to inline the calls, the resulting extension (e.g.
 statsmodels.tsa.statespace._representation) has undefined symbols
 sm_cabs/sm_clog/sm_cexp, causing ImportError at pytest collection and thus a
 FTBFS.  Marking the helpers static inline gives every translation unit its
 own local definition, fixing the undefined symbol on all architectures.
Applied-Upstream: <not yet>
Origin: vendor, openKylin
Forwarded: not-needed
Last-Update: 2026-10-23

--- statsmodels-0.14.6+dfsg.orig/statsmodels/src/_complex_shim.h
+++ statsmodels-0.14.6+dfsg/statsmodels/src/_complex_shim.h
@@ -11,14 +11,14 @@ typedef double complex double_complex;
 
 #endif
 
-inline double sm_cabs(double_complex z){
+static inline double sm_cabs(double_complex z){
    return cabs(z);
 }
 
-inline double_complex sm_clog(double_complex z){
+static inline double_complex sm_clog(double_complex z){
    return clog(z);
 }
 
-inline double_complex sm_cexp(double_complex z){
+static inline double_complex sm_cexp(double_complex z){
    return cexp(z);
 }

