]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
configure: don't check for mremap
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Feb 2024 06:54:18 +0000 (07:54 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 13 Mar 2024 07:48:37 +0000 (08:48 +0100)
mremap has been around since before the dawn of 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>
configure.ac
include/builddefs.in
io/Makefile
io/mmap.c
m4/package_libcdev.m4

index 66feba8f7a5f3ceefde9174c7a1402edf932b4b2..296eb3c1f93a6a57b39ecf2b89e92878d387bce1 100644 (file)
@@ -165,7 +165,6 @@ AC_PACKAGE_NEED_RCU_INIT
 AC_HAVE_PWRITEV2
 AC_HAVE_COPY_FILE_RANGE
 AC_HAVE_FSETXATTR
-AC_HAVE_MREMAP
 AC_NEED_INTERNAL_FSXATTR
 AC_NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG
 AC_NEED_INTERNAL_FSCRYPT_POLICY_V2
index f0c59b398506fb1023422e0dc142d130a8fed599..d6ff5960a62940815b8b4789a8376f805c3f6199 100644 (file)
@@ -93,7 +93,6 @@ HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@
 HAVE_PWRITEV2 = @have_pwritev2@
 HAVE_COPY_FILE_RANGE = @have_copy_file_range@
 HAVE_FSETXATTR = @have_fsetxattr@
-HAVE_MREMAP = @have_mremap@
 NEED_INTERNAL_FSXATTR = @need_internal_fsxattr@
 NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG = @need_internal_fscrypt_add_key_arg@
 NEED_INTERNAL_FSCRYPT_POLICY_V2 = @need_internal_fscrypt_policy_v2@
index a81a75fc87efc8ead9a31f77309a89a5e75562b8..35b3ebd5245760acb4d3a304bf378013ba07e5de 100644 (file)
@@ -33,10 +33,6 @@ ifeq ($(HAVE_PWRITEV2),yes)
 LCFLAGS += -DHAVE_PWRITEV2
 endif
 
-ifeq ($(HAVE_MREMAP),yes)
-LCFLAGS += -DHAVE_MREMAP
-endif
-
 ifeq ($(HAVE_MAP_SYNC),yes)
 LCFLAGS += -DHAVE_MAP_SYNC
 endif
index 7161ae8ecc050cb190402419857970f5f62e7a1f..85087f5702ad96ccdc54d39ce6e66c541bde2fec 100644 (file)
--- a/io/mmap.c
+++ b/io/mmap.c
@@ -16,9 +16,7 @@ static cmdinfo_t mread_cmd;
 static cmdinfo_t msync_cmd;
 static cmdinfo_t munmap_cmd;
 static cmdinfo_t mwrite_cmd;
-#ifdef HAVE_MREMAP
 static cmdinfo_t mremap_cmd;
-#endif /* HAVE_MREMAP */
 
 mmap_region_t  *maptable;
 int            mapcount;
@@ -637,7 +635,6 @@ mwrite_f(
        return 0;
 }
 
-#ifdef HAVE_MREMAP
 static void
 mremap_help(void)
 {
@@ -713,7 +710,6 @@ mremap_f(
        mapping->length = new_length;
        return 0;
 }
-#endif /* HAVE_MREMAP */
 
 void
 mmap_init(void)
@@ -770,7 +766,6 @@ mmap_init(void)
                _("writes data into a region in the current memory mapping");
        mwrite_cmd.help = mwrite_help;
 
-#ifdef HAVE_MREMAP
        mremap_cmd.name = "mremap";
        mremap_cmd.altname = "mrm";
        mremap_cmd.cfunc = mremap_f;
@@ -781,14 +776,11 @@ mmap_init(void)
        mremap_cmd.oneline =
                _("alters the size of the current memory mapping");
        mremap_cmd.help = mremap_help;
-#endif /* HAVE_MREMAP */
 
        add_command(&mmap_cmd);
        add_command(&mread_cmd);
        add_command(&msync_cmd);
        add_command(&munmap_cmd);
        add_command(&mwrite_cmd);
-#ifdef HAVE_MREMAP
        add_command(&mremap_cmd);
-#endif /* HAVE_MREMAP */
 }
index 7d7679fa09c5ba2000100604d3b08a1777a3bae3..dd04be5f0129bb16c9e83cfc0c5f54d25b91f174 100644 (file)
@@ -48,19 +48,6 @@ AC_DEFUN([AC_HAVE_FSETXATTR],
     AC_SUBST(have_fsetxattr)
   ])
 
-#
-# Check if we have a mremap call (not on Mac OS X)
-#
-AC_DEFUN([AC_HAVE_MREMAP],
-  [ AC_CHECK_DECL([mremap],
-       have_mremap=yes,
-       [],
-       [#define _GNU_SOURCE
-        #include <sys/mman.h>]
-       )
-    AC_SUBST(have_mremap)
-  ])
-
 #
 # Check if we need to override the system struct fsxattr with
 # the internal definition.  This /only/ happens if the system