Skip to contentSkip to conversation

lapi: Remove HAVE_LINUX_FS_H

PATCH In review Petr Vorel 1 participant 2 messages Jul 29, 2024 – Aug 21, 2024

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 lapi: Remove HAVE_LINUX_FS_H

Remove workaround for glibc bug fixed in glibc 2.37:

https://github.com/kraj/glibc/commit/774058d72942249f71d74e7f2b639f77184160a6

It's not needed any more (it was needed for some Fedora version only).

---
Tested: https://github.com/pevik/ltp/actions/runs/10094313234

 configure.ac           | 1 -
 include/lapi/ficlone.h | 6 +-----
 include/lapi/fs.h      | 4 +---
 3 files changed, 2 insertions(+), 9 deletions(-)
configure.ac +0 -1
index 122ef5cb79..ebbf49e289 100644
@@ -51,7 +51,6 @@ AC_CHECK_HEADERS_ONCE([ \
     linux/cryptouser.h \
     linux/close_range.h \
     linux/dccp.h \
-    linux/fs.h \
     linux/futex.h \
     linux/genetlink.h \
     linux/if_alg.h \
include/lapi/ficlone.h +1 -5
index a973a8b21b..2216733131 100644
@@ -8,11 +8,7 @@
 #define LAPI_FICLONE_H__
 
 #include "config.h"
-
-#ifdef HAVE_LINUX_FS_H
-# include <linux/fs.h>
-#endif
-
+#include <linux/fs.h>
 #include <stdint.h>
 
 #ifndef HAVE_STRUCT_FILE_CLONE_RANGE
include/lapi/fs.h +1 -3
index 635979b024..8261ca41da 100644
@@ -11,9 +11,7 @@
 
 #include "config.h"
 #ifndef HAVE_MOUNT_SETATTR
-# ifdef HAVE_LINUX_FS_H
-#  include <linux/fs.h>
-# endif
+# include <linux/fs.h>
 #endif
 
 #include <sys/user.h>
Signature · 5 lines
2.45.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp