xfs
[Top] [All Lists]

Re: xfs build warning

To: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Subject: Re: xfs build warning
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Fri, 15 Apr 2011 13:39:02 -0400
Cc: xfs@xxxxxxxxxxx, Christoph Hellwig <hch@xxxxxxxxxxxxx>
In-reply-to: <4DA876C2.8050606@xxxxxxxxxx>
References: <4DA876C2.8050606@xxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Apr 15, 2011 at 09:48:02AM -0700, Randy Dunlap wrote:
> on i386, when CONFIG_LBDAF is not enabled:
> 
> fs/xfs/linux-2.6/./xfs_trace.h:1354: warning: format '%llx' expects type 
> 'long long unsigned int', but argument 22 has type 'xfs_fsblock_t'

This should fix it:

Index: linux-2.6/fs/xfs/linux-2.6/xfs_trace.h
===================================================================
--- linux-2.6.orig/fs/xfs/linux-2.6/xfs_trace.h 2011-04-15 19:29:11.569340965 
+0200
+++ linux-2.6/fs/xfs/linux-2.6/xfs_trace.h      2011-04-15 19:30:09.679026159 
+0200
@@ -1418,7 +1418,7 @@ DECLARE_EVENT_CLASS(xfs_alloc_class,
                  __entry->wasfromfl,
                  __entry->isfl,
                  __entry->userdata,
-                 __entry->firstblock)
+                 (unsigned long long)__entry->firstblock)
 )
 
 #define DEFINE_ALLOC_EVENT(name) \

<Prev in Thread] Current Thread [Next in Thread>