From: "Darrick J. Wong" <djwong@kernel.org>
To: Andrey Albershteyn <aalbersh@redhat.com>
Cc: aalbersh@kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/3] platform_defs.h: fix __counted_by_ptr annotation
Date: Tue, 12 May 2026 09:09:43 -0700 [thread overview]
Message-ID: <20260512160943.GA9555@frogsfrogsfrogs> (raw)
In-Reply-To: <qnp7uxdaslz5u2pb5rvvb577opgw5xrcqbeplob4ukgakbcggp@htp7i6k432xx>
On Tue, May 12, 2026 at 01:48:25PM +0200, Andrey Albershteyn wrote:
> On 2026-05-07 15:11:27, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> >
> > The kernel userspace headers for Linux 7.0 provide the __counted_by_ptr
> > macro, so we shouldn't define it separately on those platforms:
> >
> > In file included from radix-tree.c:11:
> > ../include/platform_defs.h:334:9: error: "__counted_by_ptr" redefined [-Werror]
> > 334 | #define __counted_by_ptr(member)
> > | ^~~~~~~~~~~~~~~~
> > In file included from /usr/include/linux/posix_types.h:5,
> > from /usr/include/linux/types.h:9,
> > from /usr/include/linux/sched/types.h:5,
> > from /usr/include/x86_64-linux-gnu/bits/sched.h:63,
> > from /usr/include/sched.h:43,
> > from /usr/include/pthread.h:22,
> > from ../include/platform_defs.h:19:
> > /usr/include/linux/stddef.h:73:9: note: this is the location of the previous definition
> > 73 | #define __counted_by_ptr(m)
> > | ^~~~~~~~~~~~~~~~
> >
> > Do the customary ifndef wrapper thing.
> >
> > Cc: <linux-xfs@vger.kernel.org> # v7.0.0
> > Fixes: df91bc3bdc9b81 ("xfs: annotate struct xfs_attr_list_context with __counted_by_ptr")
> > Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
>
> ops, I haven't tried with new headers
To be fair, I hadn't either -- I hadn't tried with the kernel 7.0 uapi
headers until after you'd pushed the release. Oops.
> do you have -Werror enabled by default?
Yep.
> Looks good to me
> Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
Thanks!
--D
> --
> - Andrey
>
>
next prev parent reply other threads:[~2026-05-12 16:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 22:11 [PATCHSET 1/2] xfsprogs: various bug fixes for 7.1 Darrick J. Wong
2026-05-07 22:11 ` [PATCH 1/3] platform_defs.h: fix __counted_by_ptr annotation Darrick J. Wong
2026-05-08 8:56 ` Christoph Hellwig
2026-05-12 11:59 ` Andrey Albershteyn
2026-05-12 11:48 ` Andrey Albershteyn
2026-05-12 16:09 ` Darrick J. Wong [this message]
2026-05-07 22:11 ` [PATCH 2/3] xfs_scrub_all: remove dead code Darrick J. Wong
2026-05-08 8:56 ` Christoph Hellwig
2026-05-07 22:11 ` [PATCH 3/3] xfs_scrub: " Darrick J. Wong
2026-05-08 8:56 ` Christoph Hellwig
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=20260512160943.GA9555@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=aalbersh@kernel.org \
--cc=aalbersh@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.