Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCH] libxfs: fix compilation errors
@ 2026-10-14 17:44 Darrick J. Wong
  2026-10-14 18:24 ` Christoph Hellwig
  2026-10-15  5:57 ` Christoph Hellwig
  0 siblings, 2 replies; 5+ messages in thread
From: Darrick J. Wong @ 2026-10-14 17:44 UTC (permalink / raw)
  To: Andrey Albershteyn; +Cc: linux-xfs

From: Darrick J. Wong <djwong@kernel.org>

Add includes to eliminate warnings from -Werror=missing-prototypes.
It's not a good idea to let the compiler apply the default function
declaration.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 libxfs/defer_item.c |    6 ++++++
 libxfs/trans.c      |    1 +
 2 files changed, 7 insertions(+)

diff --git a/libxfs/defer_item.c b/libxfs/defer_item.c
index 72d79b10d82064..c6ea292d3d6940 100644
--- a/libxfs/defer_item.c
+++ b/libxfs/defer_item.c
@@ -30,6 +30,12 @@
 #include "xfs_group.h"
 #include "xfs_rtgroup.h"
 #include "xfs_attr_item.h"
+#include "xfs_extfree_item.h"
+#include "xfs_bmap_item.h"
+#include "xfs_rmap_item.h"
+#include "xfs_refcount_item.h"
+#include "xfs_exchmaps_item.h"
+#include "xfs_icreate_item.h"
 
 /* Dummy defer item ops, since we don't do logging. */
 
diff --git a/libxfs/trans.c b/libxfs/trans.c
index 128e9f4431dc7c..c509ca1131116d 100644
--- a/libxfs/trans.c
+++ b/libxfs/trans.c
@@ -22,6 +22,7 @@
 #include "xfs_defer.h"
 #include "xfs_trace.h"
 #include "xfs_rtbitmap.h"
+#include "xfs_icreate_item.h"
 
 static void xfs_trans_free_items(struct xfs_trans *tp);
 STATIC struct xfs_trans *xfs_trans_dup(struct xfs_trans *tp);

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-15  5:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14 17:44 [PATCH] libxfs: fix compilation errors Darrick J. Wong
2026-10-14 18:24 ` Christoph Hellwig
2026-10-14 18:42   ` Darrick J. Wong
2026-10-15  5:56     ` Christoph Hellwig
2026-10-15  5:57 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox