[dm-devel] [patch 3/3] drivers/md/dm-log-userspace-base.c: fix warning
akpm at linux-foundation.org
akpm at linux-foundation.org
Fri Sep 18 19:45:09 UTC 2009
From: Andrew Morton <akpm at linux-foundation.org>
mips:
drivers/md/dm-log-userspace-base.c: In function `userspace_ctr':
drivers/md/dm-log-userspace-base.c:159: warning: cast from pointer to integer of different size
Cc: Neil Brown <neilb at suse.de>
Cc: Jonathan Brassow <jbrassow at redhat.com>
Cc: Alasdair G Kergon <agk at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
---
drivers/md/dm-log-userspace-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/md/dm-log-userspace-base.c~drivers-md-dm-log-userspace-basec-fix-warning drivers/md/dm-log-userspace-base.c
--- a/drivers/md/dm-log-userspace-base.c~drivers-md-dm-log-userspace-basec-fix-warning
+++ a/drivers/md/dm-log-userspace-base.c
@@ -156,7 +156,7 @@ static int userspace_ctr(struct dm_dirty
}
/* The ptr value is sufficient for local unique id */
- lc->luid = (uint64_t)lc;
+ lc->luid = (unsigned long)lc;
lc->ti = ti;
_
More information about the dm-devel
mailing list