Skip to content

Commit

Permalink
[PATCH] dm: dm-table warning fix
Browse files Browse the repository at this point in the history
drivers/md/dm-table.c:500: warning: comparison of distinct pointer types lacks a cast

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed Feb 1, 2006
1 parent 4aac0a6 commit 3ee247e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ int dm_get_device(struct dm_target *ti, const char *path, sector_t start,
if (q->merge_bvec_fn)
rs->max_sectors =
min_not_zero(rs->max_sectors,
(unsigned short)(PAGE_SIZE >> 9));
(unsigned int) (PAGE_SIZE >> 9));

rs->max_phys_segments =
min_not_zero(rs->max_phys_segments,
Expand Down
2 changes: 1 addition & 1 deletion include/linux/device-mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct target_type {
};

struct io_restrictions {
unsigned short max_sectors;
unsigned int max_sectors;
unsigned short max_phys_segments;
unsigned short max_hw_segments;
unsigned short hardsect_size;
Expand Down

0 comments on commit 3ee247e

Please sign in to comment.