From: Mingli Yu <mingli...@windriver.com> Fixes: | /build/tmp-glibc/work/corei7-64-wrs-linux/s-nail/14.9.24-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/12.1.0/ld: mx-047.o: in function `a_nm_alias_expand': | /usr/src/debug/s-nail/14.9.24-r0/s-nail-14.9.24/src/mx/names.c:308: undefined reference to `su_cs_dict_lookup' | /build/tmp-glibc/work/corei7-64-wrs-linux/s-nail/14.9.24-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../libexec/x86_64-wrs-linux/gcc/x86_64-wrs-linux/12.1.0/ld: mx-028.o: in function `mx_fs_linepool_book': | /usr/src/debug/s-nail/14.9.24-r0/s-nail-14.9.24/src/mx/file-streams.c:1036: undefined reference to `su_mem_get_can_book' collect2: error: ld returned 1 exit status
Signed-off-by: Mingli Yu <mingli...@windriver.com> --- include/su/cs-dict.h | 2 +- include/su/mem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/su/cs-dict.h b/include/su/cs-dict.h index da6bf6fd..ca563758 100644 --- a/include/su/cs-dict.h +++ b/include/su/cs-dict.h @@ -287,7 +287,7 @@ INLINE boole su_cs_dict_has_key(struct su_cs_dict const *self, } /*! Lookup a value, return it (possibly \NIL) or \NIL. */ -INLINE void *su_cs_dict_lookup(struct su_cs_dict *self, char const *key){ +static inline void *su_cs_dict_lookup(struct su_cs_dict *self, char const *key){ struct su__cs_dict_node *csdnp; ASSERT(self != NIL); ASSERT_RET(key != NIL, NIL); diff --git a/include/su/mem.h b/include/su/mem.h index 18c3d0d2..5233f0fd 100644 --- a/include/su/mem.h +++ b/include/su/mem.h @@ -356,7 +356,7 @@ EXPORT void su_mem_free(void *ovp su_DBG_LOC_ARGS_DECL); * \a{no} objects, can \a{notoadd} objects be added? * \remarks{Always compares against \r{su_UZ_MAX}.} * \remarks{Results depend on \r{su_MEM_ALLOC_DEBUG}.} */ -INLINE boole su_mem_get_can_book(uz size, uz no, uz notoadd){ +static inline boole su_mem_get_can_book(uz size, uz no, uz notoadd){ if(UZ_MAX - no <= notoadd) return FAL0; no += notoadd; -- 2.25.1