From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Andrey Albershteyn <aalbersh@kernel.org>,
Damien Le Moal <dlemoal@kernel.org>,
Carlos Maiolino <cem@kernel.org>,
linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/5] include blkzoned.h in platform_defs.h
Date: Tue, 27 Jan 2026 21:11:33 -0800 [thread overview]
Message-ID: <20260128051133.GQ5945@frogsfrogsfrogs> (raw)
In-Reply-To: <20260128043318.522432-2-hch@lst.de>
On Wed, Jan 28, 2026 at 05:32:55AM +0100, Christoph Hellwig wrote:
> 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>
I was /almost/ about to get cranky about including blkzoned.h
unconditionally but then I noticed that the header has been in
include/uapi/ since October 2016.
So I guess it won't cause any problems with a current distro release.
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> include/platform_defs.h | 1 +
> libxfs/xfs_zones.c | 1 -
> mdrestore/xfs_mdrestore.c | 1 -
> mkfs/xfs_mkfs.c | 1 -
> repair/zoned.c | 1 -
> 5 files changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/include/platform_defs.h b/include/platform_defs.h
> index da966490b0f5..1152f0622ccf 100644
> --- a/include/platform_defs.h
> +++ b/include/platform_defs.h
> @@ -24,6 +24,7 @@
> #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)
> diff --git a/libxfs/xfs_zones.c b/libxfs/xfs_zones.c
> index 7a81d83f5b3e..c1ad7075329c 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 <linux/blkzoned.h>
> #include "libxfs_priv.h"
> #include "xfs.h"
> #include "xfs_fs.h"
> diff --git a/mdrestore/xfs_mdrestore.c b/mdrestore/xfs_mdrestore.c
> index b6e8a6196a79..eece58977f97 100644
> --- a/mdrestore/xfs_mdrestore.c
> +++ b/mdrestore/xfs_mdrestore.c
> @@ -8,7 +8,6 @@
> #include "xfs_metadump.h"
> #include <libfrog/platform.h>
> #include "libfrog/div64.h"
> -#include <linux/blkzoned.h>
>
> union mdrestore_headers {
> __be32 magic;
> diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
> index b34407725f76..46f4faf4de5a 100644
> --- a/mkfs/xfs_mkfs.c
> +++ b/mkfs/xfs_mkfs.c
> @@ -6,7 +6,6 @@
> #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"
> diff --git a/repair/zoned.c b/repair/zoned.c
> index 206b0158f95f..49cc43984883 100644
> --- a/repair/zoned.c
> +++ b/repair/zoned.c
> @@ -3,7 +3,6 @@
> * Copyright (c) 2024 Christoph Hellwig.
> */
> #include <ctype.h>
> -#include <linux/blkzoned.h>
> #include "libxfs_priv.h"
> #include "libxfs.h"
> #include "xfs_zones.h"
> --
> 2.47.3
>
>
next prev parent reply other threads:[~2026-01-28 5:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-28 4:32 enable cached zone report v5 Christoph Hellwig
2026-01-28 4:32 ` [PATCH 1/5] include blkzoned.h in platform_defs.h Christoph Hellwig
2026-01-28 5:11 ` Darrick J. Wong [this message]
2026-01-28 5:58 ` Damien Le Moal
2026-01-28 4:32 ` [PATCH 2/5] xfs: use blkdev_report_zones_cached() Christoph Hellwig
2026-01-28 4:32 ` [PATCH 3/5] mkfs: remove unnecessary return value affectation Christoph Hellwig
2026-01-28 4:32 ` [PATCH 4/5] libfrog: lift common zone reporting code from mkfs and repair Christoph Hellwig
2026-01-28 5:09 ` Darrick J. Wong
2026-01-28 4:32 ` [PATCH 5/5] libfrog: enable cached report zones Christoph Hellwig
2026-01-28 5:10 ` Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260128051133.GQ5945@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=aalbersh@kernel.org \
--cc=cem@kernel.org \
--cc=dlemoal@kernel.org \
--cc=hch@lst.de \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox