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 <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
#include <stdbool.h>
#include <libgen.h>
#include <urcu.h>
+#include <linux/blkzoned.h>
/* long and pointer must be either 32 bit or 64 bit */
#define BITS_PER_LONG (sizeof(long) * CHAR_BIT)
* Copyright (c) 2023-2025 Christoph Hellwig.
* Copyright (c) 2024-2025, Western Digital Corporation or its affiliates.
*/
-#include <linux/blkzoned.h>
#include "libxfs_priv.h"
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_metadump.h"
#include <libfrog/platform.h>
#include "libfrog/div64.h"
-#include <linux/blkzoned.h>
union mdrestore_headers {
__be32 magic;
#include "libfrog/util.h"
#include "libxfs.h"
#include <ctype.h>
-#include <linux/blkzoned.h>
#include "libxfs/xfs_zones.h"
#include "xfs_multidisk.h"
#include "libxcmd.h"
* Copyright (c) 2024 Christoph Hellwig.
*/
#include <ctype.h>
-#include <linux/blkzoned.h>
#include "libxfs_priv.h"
#include "libxfs.h"
#include "xfs_zones.h"