diff mbox series

[1/1] lapi: Remove HAVE_LINUX_FS_H

Message ID 20240729201435.1286799-1-pvorel@suse.cz
State Accepted
Headers show
Series [1/1] lapi: Remove HAVE_LINUX_FS_H | expand

Commit Message

Petr Vorel July 29, 2024, 8:14 p.m. UTC
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).

Suggested-by: Li Wang <liwang@redhat.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
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(-)

Comments

Petr Vorel Aug. 21, 2024, 7:47 p.m. UTC | #1
Hi Li, all,

> 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).

FYI merged.

Kind regards,
Petr
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 122ef5cb79..ebbf49e289 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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 \
diff --git a/include/lapi/ficlone.h b/include/lapi/ficlone.h
index a973a8b21b..2216733131 100644
--- a/include/lapi/ficlone.h
+++ b/include/lapi/ficlone.h
@@ -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
diff --git a/include/lapi/fs.h b/include/lapi/fs.h
index 635979b024..8261ca41da 100644
--- a/include/lapi/fs.h
+++ b/include/lapi/fs.h
@@ -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>