[LTP] [PATCH 1/1] lapi: Remove HAVE_LINUX_FS_H
Petr Vorel
pvorel@suse.cz
Mon Jul 29 22:14:35 CEST 2024
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(-)
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>
--
2.45.2
More information about the ltp
mailing list