Description: Make _encoded_size a static inline function
 Fix undefined symbol _encoded_size in the mutf8.cmutf8 extension module.
 .
 In C99 mode GCC does not emit an external definition for a non-static
 inline function, so call sites that are not inlined leave an undefined
 reference to _encoded_size in cmutf8.so, causing ImportError when the
 module is imported.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-05
--- python-mutf8-1.0.6.orig/mutf8/cmutf8.c
+++ python-mutf8-1.0.6/mutf8/cmutf8.c
@@ -121,7 +121,7 @@ decode_modified_utf8(PyObject *self, PyO
 #undef return_err
 }
 
-inline Py_ssize_t _encoded_size(void *data, Py_ssize_t length, int kind) {
+static inline Py_ssize_t _encoded_size(void *data, Py_ssize_t length, int kind) {
     Py_ssize_t byte_count = 0;
 
     for (Py_ssize_t i = 0; i < length; i++) {
