* [PATCH 0/2] xfsprogs: warning fix and add stack usage to gitignore
@ 2026-10-29 16:10 Andrey Albershteyn
2026-10-29 16:10 ` [PATCH 1/2] xfs: fix two warnings in xfs_alloc.c Andrey Albershteyn
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Andrey Albershteyn @ 2026-10-29 16:10 UTC (permalink / raw)
To: linux-xfs; +Cc: Andrey Albershteyn, hch
Hi folks,
One last fix for a warning to make it compile under gcc16 and all these
new warnings enabled. And a gitignore update with stack usage files.
Andrey Albershteyn (2):
xfs: fix two warnings in xfs_alloc.c
xfsprogs: add gcc generated stack usage files to gitignore
.gitignore | 1 +
libxfs/stubs/xfs_extent_busy.h | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
--
2.54.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] xfs: fix two warnings in xfs_alloc.c
2026-10-29 16:10 [PATCH 0/2] xfsprogs: warning fix and add stack usage to gitignore Andrey Albershteyn
@ 2026-10-29 16:10 ` Andrey Albershteyn
2026-11-03 5:43 ` Christoph Hellwig
2026-10-29 16:10 ` [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore Andrey Albershteyn
2026-11-02 13:13 ` [PATCH 0/2] xfsprogs: warning fix and add stack usage " Carlos Maiolino
2 siblings, 1 reply; 8+ messages in thread
From: Andrey Albershteyn @ 2026-10-29 16:10 UTC (permalink / raw)
To: linux-xfs; +Cc: Andrey Albershteyn, hch
There's still two warnings in xfs_alloc due to unused alloc_flags var.
xfs_alloc.c: In function ‘xfs_alloc_ag_vextent_near’:
xfs_alloc.c:1676:33: error: parameter ‘alloc_flags’ set but not used [-Werror=unused-but-set-parameter=]
1676 | uint32_t alloc_flags)
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
xfs_alloc.c: In function ‘xfs_alloc_ag_vextent_size’:
xfs_alloc.c:1792:33: error: parameter ‘alloc_flags’ set but not used [-Werror=unused-but-set-parameter=]
1792 | uint32_t alloc_flags)
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
---
libxfs/stubs/xfs_extent_busy.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libxfs/stubs/xfs_extent_busy.h b/libxfs/stubs/xfs_extent_busy.h
index e7d1bcdb2fab..2ef307f0f901 100644
--- a/libxfs/stubs/xfs_extent_busy.h
+++ b/libxfs/stubs/xfs_extent_busy.h
@@ -15,6 +15,9 @@
*(busy_gen) = __foo; \
false; \
})
-#define xfs_extent_busy_flush(tp,pag,busy_gen,alloc_flags) ((int)(0))
+#define xfs_extent_busy_flush(tp,pag,busy_gen,alloc_flags) ({ \
+ (void)alloc_flags; \
+ (int)(0); \
+})
#endif /* __XFS_EXTENT_BUSY_H__ */
--
2.54.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore
2026-10-29 16:10 [PATCH 0/2] xfsprogs: warning fix and add stack usage to gitignore Andrey Albershteyn
2026-10-29 16:10 ` [PATCH 1/2] xfs: fix two warnings in xfs_alloc.c Andrey Albershteyn
@ 2026-10-29 16:10 ` Andrey Albershteyn
2026-11-03 5:44 ` Christoph Hellwig
2026-11-02 13:13 ` [PATCH 0/2] xfsprogs: warning fix and add stack usage " Carlos Maiolino
2 siblings, 1 reply; 8+ messages in thread
From: Andrey Albershteyn @ 2026-10-29 16:10 UTC (permalink / raw)
To: linux-xfs; +Cc: Andrey Albershteyn, hch
These are generated by gcc due to recently added:
WARNINGS += -fstack-usage
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index eb3decd108be..f5411ed52198 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,7 @@
/include/platform_defs.h
/include/builddefs
/install-sh
+*.su
# magic directory symlinks
/include/disk
--
2.54.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] xfsprogs: warning fix and add stack usage to gitignore
2026-10-29 16:10 [PATCH 0/2] xfsprogs: warning fix and add stack usage to gitignore Andrey Albershteyn
2026-10-29 16:10 ` [PATCH 1/2] xfs: fix two warnings in xfs_alloc.c Andrey Albershteyn
2026-10-29 16:10 ` [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore Andrey Albershteyn
@ 2026-11-02 13:13 ` Carlos Maiolino
2 siblings, 0 replies; 8+ messages in thread
From: Carlos Maiolino @ 2026-11-02 13:13 UTC (permalink / raw)
To: Andrey Albershteyn; +Cc: linux-xfs, hch
On Thu, Oct 29, 2026 at 05:10:21PM +0100, Andrey Albershteyn wrote:
> Hi folks,
>
> One last fix for a warning to make it compile under gcc16 and all these
> new warnings enabled. And a gitignore update with stack usage files.
>
> Andrey Albershteyn (2):
> xfs: fix two warnings in xfs_alloc.c
> xfsprogs: add gcc generated stack usage files to gitignore
>
> .gitignore | 1 +
> libxfs/stubs/xfs_extent_busy.h | 5 ++++-
> 2 files changed, 5 insertions(+), 1 deletion(-)
For the series:
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
>
> --
> 2.54.0
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] xfs: fix two warnings in xfs_alloc.c
2026-10-29 16:10 ` [PATCH 1/2] xfs: fix two warnings in xfs_alloc.c Andrey Albershteyn
@ 2026-11-03 5:43 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2026-11-03 5:43 UTC (permalink / raw)
To: Andrey Albershteyn; +Cc: linux-xfs, hch
On Thu, Oct 29, 2026 at 05:10:22PM +0100, Andrey Albershteyn wrote:
> There's still two warnings in xfs_alloc due to unused alloc_flags var.
Looks good. At some point we should look into converting these stubs
to inlines, but just as I didn't quite want to jump to that with my
previous series I'm not going to force you here either.
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore
2026-10-29 16:10 ` [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore Andrey Albershteyn
@ 2026-11-03 5:44 ` Christoph Hellwig
2026-11-03 9:25 ` Andrey Albershteyn
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Hellwig @ 2026-11-03 5:44 UTC (permalink / raw)
To: Andrey Albershteyn; +Cc: linux-xfs, hch
On Thu, Oct 29, 2026 at 05:10:23PM +0100, Andrey Albershteyn wrote:
> These are generated by gcc due to recently added:
>
> WARNINGS += -fstack-usage
I don't actually see that added, and I also think we really should not
add it by default.
That being said, having it in gitignore if someone wants to use it is
perfectly fine, so:
Reviewed-by: Christoph Hellwig <hch@lst.de>
with a slight tweak to the commit message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore
2026-11-03 5:44 ` Christoph Hellwig
@ 2026-11-03 9:25 ` Andrey Albershteyn
2026-11-03 9:46 ` Christoph Hellwig
0 siblings, 1 reply; 8+ messages in thread
From: Andrey Albershteyn @ 2026-11-03 9:25 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-xfs
On 2026-11-03 06:44:11, Christoph Hellwig wrote:
> On Thu, Oct 29, 2026 at 05:10:23PM +0100, Andrey Albershteyn wrote:
> > These are generated by gcc due to recently added:
> >
> > WARNINGS += -fstack-usage
>
> I don't actually see that added, and I also think we really should not
> add it by default.
Yes it's not set yet, I meant to reference Darrick's patches with
Warnings [1]. I thought your patchset is also a preparation for pulling
those warnings. I can resend Darrick's patchset without stack-usage,
I will look if all of those are necessary actually
1: https://lore.kernel.org/linux-xfs/20261015144610.GP2705364@frogsfrogsfrogs/
>
> That being said, having it in gitignore if someone wants to use it is
> perfectly fine, so:
>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
>
Thanks
> with a slight tweak to the commit message.
>
Oh sorry, I already pulled that in for-next
--
- Andrey
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore
2026-11-03 9:25 ` Andrey Albershteyn
@ 2026-11-03 9:46 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2026-11-03 9:46 UTC (permalink / raw)
To: Andrey Albershteyn; +Cc: Christoph Hellwig, linux-xfs
On Tue, Nov 03, 2026 at 10:25:39AM +0100, Andrey Albershteyn wrote:
> On 2026-11-03 06:44:11, Christoph Hellwig wrote:
> > On Thu, Oct 29, 2026 at 05:10:23PM +0100, Andrey Albershteyn wrote:
> > > These are generated by gcc due to recently added:
> > >
> > > WARNINGS += -fstack-usage
> >
> > I don't actually see that added, and I also think we really should not
> > add it by default.
>
> Yes it's not set yet, I meant to reference Darrick's patches with
> Warnings [1]. I thought your patchset is also a preparation for pulling
> those warnings. I can resend Darrick's patchset without stack-usage,
> I will look if all of those are necessary actually
I think a lot of them are over the top. A good first step would be
to catch up with the kernel flags.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-11-03 9:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 16:10 [PATCH 0/2] xfsprogs: warning fix and add stack usage to gitignore Andrey Albershteyn
2026-10-29 16:10 ` [PATCH 1/2] xfs: fix two warnings in xfs_alloc.c Andrey Albershteyn
2026-11-03 5:43 ` Christoph Hellwig
2026-10-29 16:10 ` [PATCH 2/2] xfsprogs: add gcc generated stack usage files to gitignore Andrey Albershteyn
2026-11-03 5:44 ` Christoph Hellwig
2026-11-03 9:25 ` Andrey Albershteyn
2026-11-03 9:46 ` Christoph Hellwig
2026-11-02 13:13 ` [PATCH 0/2] xfsprogs: warning fix and add stack usage " Carlos Maiolino
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.