From: Christoph Hellwig Date: Thu, 15 Feb 2024 06:54:14 +0000 (+0100) Subject: configure: don't check for fls X-Git-Tag: v6.7.0~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=055629e0038c28e9ba0bf11a4e59733c040f95e6;p=thirdparty%2Fxfsprogs-dev.git 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 Reviewed-by: "Darrick J. Wong" Signed-off-by: Carlos Maiolino --- diff --git a/configure.ac b/configure.ac index 68d50e2d..79fb475f 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 fe617303..1f1adcec 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 86fc5274..5ee969af 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 25d86984..17319bb2 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -91,18 +91,6 @@ syncfs(0); AC_SUBST(have_syncfs) ]) -# -# Check if we have a flc call (Mac OS X) -# -AC_DEFUN([AC_HAVE_FLS], - [ AC_CHECK_DECL([fls], - have_fls=yes, - [], - [#include ] - ) - AC_SUBST(have_fls) - ]) - # # Check if we have a fsetxattr call #