Description: Fix FTBFS caused by non-static inline functions in fdmount.c
 lock_mtab/unlock_mtab are defined as plain "inline" but only used inside
 fdmount.c. With default C11 inline semantics and no optimization, GCC does
 not emit an external symbol definition, causing "undefined reference" at
 link time. Mark them static inline so internal linkage is used.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-02

--- fdutils-5.6.orig/src/fdmount.c
+++ fdutils-5.6/src/fdmount.c
@@ -355,7 +355,7 @@ void save_mtab() {
     mtab_changed=0;
 }
 
-inline void lock_mtab() {
+static inline void lock_mtab() {
     int fd;
     if((fd = open(lock_filename, O_WRONLY | O_CREAT | O_EXCL, 0744)) < 0) {
 	die("Cannot create lock file %s: %s",lock_filename,strerror(errno));
@@ -364,7 +364,7 @@ inline void lock_mtab() {
     locked=1;
 }
 
-inline void unlock_mtab() {
+static inline void unlock_mtab() {
     unlink(lock_filename);
     locked=0;
 }

