From: Christoph Hellwig Date: Wed, 28 Jan 2026 04:32:55 +0000 (+0100) Subject: include blkzoned.h in platform_defs.h X-Git-Tag: v6.19.0~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7a07fadf4ff8064d8ae4c9c103d2afda57951d0;p=xfsprogs-dev.git include blkzoned.h in platform_defs.h We'll need to conditionally add definitions added in later version of blkzoned.h soon. The right place for that is platform_defs.h, which means blkzoned.h needs to be included there for cpp trickery to work. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Reviewed-by: Damien Le Moal --- diff --git a/include/platform_defs.h b/include/platform_defs.h index da966490..1152f062 100644 --- a/include/platform_defs.h +++ b/include/platform_defs.h @@ -24,6 +24,7 @@ #include #include #include +#include /* long and pointer must be either 32 bit or 64 bit */ #define BITS_PER_LONG (sizeof(long) * CHAR_BIT) diff --git a/libxfs/xfs_zones.c b/libxfs/xfs_zones.c index 7a81d83f..c1ad7075 100644 --- a/libxfs/xfs_zones.c +++ b/libxfs/xfs_zones.c @@ -3,7 +3,6 @@ * Copyright (c) 2023-2025 Christoph Hellwig. * Copyright (c) 2024-2025, Western Digital Corporation or its affiliates. */ -#include #include "libxfs_priv.h" #include "xfs.h" #include "xfs_fs.h" diff --git a/mdrestore/xfs_mdrestore.c b/mdrestore/xfs_mdrestore.c index 90908fe0..8858026c 100644 --- a/mdrestore/xfs_mdrestore.c +++ b/mdrestore/xfs_mdrestore.c @@ -8,7 +8,6 @@ #include "xfs_metadump.h" #include #include "libfrog/div64.h" -#include union mdrestore_headers { __be32 magic; diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index f539c91d..be8e6a9c 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -6,7 +6,6 @@ #include "libfrog/util.h" #include "libxfs.h" #include -#include #include "libxfs/xfs_zones.h" #include "xfs_multidisk.h" #include "libxcmd.h" diff --git a/repair/zoned.c b/repair/zoned.c index 206b0158..49cc4398 100644 --- a/repair/zoned.c +++ b/repair/zoned.c @@ -3,7 +3,6 @@ * Copyright (c) 2024 Christoph Hellwig. */ #include -#include #include "libxfs_priv.h" #include "libxfs.h" #include "xfs_zones.h"