Skip to content

Commit

Permalink
dm log: userspace fix incorrect luid cast in userspace_ctr
Browse files Browse the repository at this point in the history
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 <jbrassow@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
  • Loading branch information
Andrew Morton authored and Alasdair G Kergon committed Oct 16, 2009
1 parent 034a186 commit bca915a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-log-userspace-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bca915a

Please sign in to comment.