[PATCH] dm: dm-table warning fix
authorAlasdair G Kergon <agk@redhat.com>
Wed, 1 Feb 2006 11:04:55 +0000 (03:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:11 +0000 (08:53 -0800)
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>
drivers/md/dm-table.c
include/linux/device-mapper.h

index a6f2dc66c3db12b09606218e1595e147b20c8a57..9b1e2f5ca63049dbb1dd2dad9e642382374fbbf5 100644 (file)
@@ -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,
index 83c7d207b80e7e8416e68813cf20dc38c9545e9e..51e0e95a421a1a19ed3bfbc30e6e530b112dee55 100644 (file)
@@ -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;