* [PATCH 4/4] Btrfs-progs: fix complie warning in the function filter_by_parent
@ 2013-02-25 14:03 Wang Shilong
0 siblings, 0 replies; only message in thread
From: Wang Shilong @ 2013-02-25 14:03 UTC (permalink / raw)
To: linux-btrfs; +Cc: wangshilong1991
From: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
See the below warning info:
warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
---
btrfs-list.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/btrfs-list.c b/btrfs-list.c
index d02d620..2eee4f6 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -1173,7 +1173,7 @@ static int filter_full_path(struct root_info *ri, u64 data)
static int filter_by_parent(struct root_info *ri, u64 data)
{
- return !uuid_compare(ri->puuid, (u8 *)data);
+ return !uuid_compare(ri->puuid, (u8 *)(unsigned long)data);
}
static btrfs_list_filter_func all_filter_funcs[] = {
--
1.7.7.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-25 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-25 14:03 [PATCH 4/4] Btrfs-progs: fix complie warning in the function filter_by_parent Wang Shilong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).