diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-15 07:54:14 +0100 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2024-03-13 08:48:37 +0100 |
commit | 055629e0038c28e9ba0bf11a4e59733c040f95e6 (patch) | |
tree | ca353e7d74a84e3c4930a35dc6cda2a84f835ad3 | |
parent | 015b44e7fd6fdb274bdf9b439c282a0e02e2fa2a (diff) | |
download | xfsprogs-dev-055629e0038c28e9ba0bf11a4e59733c040f95e6.tar.gz |
configure: don't check for fls
fls should never be provided by system headers. It seems like on MacOS
it did, but as we're not supporting MacOS anymore there is no need to
check for it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | include/bitops.h | 2 | ||||
-rw-r--r-- | include/builddefs.in | 4 | ||||
-rw-r--r-- | m4/package_libcdev.m4 | 12 |
4 files changed, 0 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac index 68d50e2d2a..79fb475f7f 100644 --- a/configure.ac +++ b/configure.ac @@ -167,7 +167,6 @@ AC_HAVE_PWRITEV2 AC_HAVE_PREADV AC_HAVE_COPY_FILE_RANGE AC_HAVE_SYNCFS -AC_HAVE_FLS AC_HAVE_FSETXATTR AC_HAVE_MREMAP AC_NEED_INTERNAL_FSXATTR diff --git a/include/bitops.h b/include/bitops.h index fe6173039c..1f1adceccf 100644 --- a/include/bitops.h +++ b/include/bitops.h @@ -6,7 +6,6 @@ * fls: find last bit set. */ -#ifndef HAVE_FLS static inline int fls(int x) { int r = 32; @@ -34,7 +33,6 @@ static inline int fls(int x) } return r; } -#endif /* HAVE_FLS */ static inline int fls64(__u64 x) { diff --git a/include/builddefs.in b/include/builddefs.in index 86fc527423..5ee969afae 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -95,7 +95,6 @@ HAVE_PREADV = @have_preadv@ HAVE_PWRITEV2 = @have_pwritev2@ HAVE_COPY_FILE_RANGE = @have_copy_file_range@ HAVE_SYNCFS = @have_syncfs@ -HAVE_FLS = @have_fls@ HAVE_FSETXATTR = @have_fsetxattr@ HAVE_MREMAP = @have_mremap@ NEED_INTERNAL_FSXATTR = @need_internal_fsxattr@ @@ -127,9 +126,6 @@ GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall # _LGPL_SOURCE is for liburcu to work correctly with GPL/LGPL programs PCFLAGS = -D_LGPL_SOURCE -D_GNU_SOURCE $(GCCFLAGS) DEPENDFLAGS = -D__linux__ -ifeq ($(HAVE_FLS),yes) -LCFLAGS+= -DHAVE_FLS -endif ifeq ($(HAVE_MNTENT),yes) PCFLAGS+= -DHAVE_MNTENT endif diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index 25d869841e..17319bb231 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -92,18 +92,6 @@ syncfs(0); ]) # -# Check if we have a flc call (Mac OS X) -# -AC_DEFUN([AC_HAVE_FLS], - [ AC_CHECK_DECL([fls], - have_fls=yes, - [], - [#include <string.h>] - ) - AC_SUBST(have_fls) - ]) - -# # Check if we have a fsetxattr call # AC_DEFUN([AC_HAVE_FSETXATTR], |