From: Andrew Morton Date: Fri, 16 Oct 2009 22:18:15 +0000 (+0100) Subject: dm log: userspace fix incorrect luid cast in userspace_ctr X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bca915aae803cf01fde4461fc9c093cf5a86d7fc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git dm log: userspace fix incorrect luid cast in userspace_ctr 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: stable@kernel.org Cc: Jonathan Brassow Signed-off-by: Andrew Morton Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-log-userspace-base.c b/drivers/md/dm-log-userspace-base.c index 652bd33109e3..7ac2c1450d10 100644 --- a/drivers/md/dm-log-userspace-base.c +++ b/drivers/md/dm-log-userspace-base.c @@ -156,7 +156,7 @@ static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, } /* The ptr value is sufficient for local unique id */ - lc->luid = (uint64_t)lc; + lc->luid = (unsigned long)lc; lc->ti = ti;