public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [xfstests PATCH] loggen: remove deprecated header includes and add definition for XFS_TRANS_MAGIC
@ 2014-05-12 12:46 Jeff Layton
  2014-05-12 23:00 ` Dave Chinner
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Layton @ 2014-05-12 12:46 UTC (permalink / raw)
  To: xfs

xfstests was failing to build on my rawhide box. The problem was that
some of the headers included by loggen.c no longer exist in current
releases. This just removes those includes and adds a conditional
definition of XFS_TRANS_MAGIC.

It may make more sense to just move XFS_TRANS_MAGIC to a different
header, but this seems to work on both f20 and rawhide boxes.

Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
---
 src/loggen.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/loggen.c b/src/loggen.c
index 522c9178ee26..1740732249b6 100644
--- a/src/loggen.c
+++ b/src/loggen.c
@@ -26,8 +26,6 @@
  */
 
 #include <xfs/libxfs.h>
-#include <xfs/xfs_log.h>
-#include <xfs/xfs_log_priv.h>
 
 #ifndef ASSIGN_ANY_LSN_DISK
 #define ASSIGN_ANY_LSN_DISK(lsn,cycle,block)  \
@@ -37,6 +35,10 @@
     }
 #endif
 
+#ifndef XFS_TRANS_MAGIC
+#define	XFS_TRANS_MAGIC		0x5452414E	/* 'TRAN' */
+#endif
+
 void
 usage(void)
 {
-- 
1.9.0

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2014-05-13 12:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-12 12:46 [xfstests PATCH] loggen: remove deprecated header includes and add definition for XFS_TRANS_MAGIC Jeff Layton
2014-05-12 23:00 ` Dave Chinner
2014-05-13  0:35   ` Jeff Layton
2014-05-13 11:54   ` [PATCH] loggen: fix build vs. newer xfsprogs headers Jeff Layton
2014-05-13 12:00     ` Jeff Layton
2014-05-13 12:04     ` [xfstests PATCH v2] " Jeff Layton

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