Description: Fix exerciser link failure by making ExerciserState_* accessors static inline
 The ExerciserState_GetNuArchive/SetNuArchive/GetArchivePath/SetArchivePath/
 GetArchiveFile functions were defined as plain "inline" in Exerciser.c.
 Under C99/C11 semantics (GCC >= 5 defaults to gnu11) a non-static inline
 definition does not emit an external out-of-line symbol, so linking the
 exerciser sample fails with undefined references when the functions are
 not inlined (e.g. at -O0).  These accessors are only used within this
 translation unit, so make them static inline.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: other
Forwarded: not-needed
Last-Update: 2026-09-04

--- nulib2-3.1.0.orig/nufxlib/samples/Exerciser.c
+++ nulib2-3.1.0/nufxlib/samples/Exerciser.c
@@ -84,23 +84,23 @@ void ExerciserState_Free(ExerciserState*
     free(pExerState);
 }
 
-inline NuArchive* ExerciserState_GetNuArchive(const ExerciserState* pExerState)
+static inline NuArchive* ExerciserState_GetNuArchive(const ExerciserState* pExerState)
 {
     return pExerState->pArchive;
 }
 
-inline void ExerciserState_SetNuArchive(ExerciserState* pExerState,
+static inline void ExerciserState_SetNuArchive(ExerciserState* pExerState,
     NuArchive* newArchive)
 {
     pExerState->pArchive = newArchive;
 }
 
-inline char* ExerciserState_GetArchivePath(const ExerciserState* pExerState)
+static inline char* ExerciserState_GetArchivePath(const ExerciserState* pExerState)
 {
     return pExerState->archivePath;
 }
 
-inline void ExerciserState_SetArchivePath(ExerciserState* pExerState,
+static inline void ExerciserState_SetArchivePath(ExerciserState* pExerState,
     char* newPath)
 {
     if (pExerState->archivePath != NULL)
@@ -120,7 +120,7 @@ inline void ExerciserState_SetArchivePat
     }
 }
 
-inline const char* ExerciserState_GetArchiveFile(const ExerciserState* pExerState)
+static inline const char* ExerciserState_GetArchiveFile(const ExerciserState* pExerState)
 {
     if (pExerState->archiveFile == NULL)
         return "[no archive open]";

