提交 1a18a294 编写于 作者: C Christoph Hellwig 提交者: Alex Elder

xfs: fix compiler warning in xfs_trace.h

xfs_fsblock_t may be a 32-bit type on if XFS_BIG_BLKNOS is not set,
make sure to cast a value of this type to an unsigned long long
before using the ll printk qualifier.
Reported-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
Signed-off-by: NAlex Elder <aelder@sgi.com>
上级 45c51b99
...@@ -1391,7 +1391,7 @@ DECLARE_EVENT_CLASS(xfs_alloc_class, ...@@ -1391,7 +1391,7 @@ DECLARE_EVENT_CLASS(xfs_alloc_class,
__entry->wasfromfl, __entry->wasfromfl,
__entry->isfl, __entry->isfl,
__entry->userdata, __entry->userdata,
__entry->firstblock) (unsigned long long)__entry->firstblock)
) )
#define DEFINE_ALLOC_EVENT(name) \ #define DEFINE_ALLOC_EVENT(name) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册