diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-15 07:54:02 +0100 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2024-03-13 08:48:37 +0100 |
commit | 4b641cc085f6da992eb0f26f5875c8786933e5c4 (patch) | |
tree | 5060e5a207f8f189d6b8ee0b8f7725809d9d5a3c | |
parent | c7820bbb424250305be1841fa98be1861b44e117 (diff) | |
download | xfsprogs-dev-4b641cc085f6da992eb0f26f5875c8786933e5c4.tar.gz |
include: stop using SIZEOF_LONG
SIZEOF_LONG together with the unused SIZEOF_CHAR_P is the last thing that
really needs a generated configuration header. Switch to just using
sizeof(long) so that we can stop generating platform_defs.h.
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 | 2 | ||||
-rw-r--r-- | include/platform_defs.h.in | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 9133f88d99..8e7e8b2edc 100644 --- a/configure.ac +++ b/configure.ac @@ -248,8 +248,6 @@ if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then AC_MSG_ERROR([LTO not supported by compiler.]) fi -AC_CHECK_SIZEOF([long]) -AC_CHECK_SIZEOF([char *]) AC_MANUAL_FORMAT AC_HAVE_LIBURCU_ATOMIC64 diff --git a/include/platform_defs.h.in b/include/platform_defs.h.in index 17262dcffe..dce7154cd1 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -26,9 +26,7 @@ #include <urcu.h> /* long and pointer must be either 32 bit or 64 bit */ -#undef SIZEOF_LONG -#undef SIZEOF_CHAR_P -#define BITS_PER_LONG (SIZEOF_LONG * CHAR_BIT) +#define BITS_PER_LONG (sizeof(long) * CHAR_BIT) typedef unsigned short umode_t; |