From: Alasdair G Kergon drivers/md/dm-table.c:500: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Alasdair G Kergon Signed-off-by: Andrew Morton --- drivers/md/dm-table.c | 2 +- include/linux/device-mapper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/md/dm-table.c~dm-dm-table-warning-fix drivers/md/dm-table.c --- devel/drivers/md/dm-table.c~dm-dm-table-warning-fix 2006-01-23 14:31:46.000000000 -0800 +++ devel-akpm/drivers/md/dm-table.c 2006-01-23 14:31:46.000000000 -0800 @@ -508,7 +508,7 @@ int dm_get_device(struct dm_target *ti, 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, diff -puN include/linux/device-mapper.h~dm-dm-table-warning-fix include/linux/device-mapper.h --- devel/include/linux/device-mapper.h~dm-dm-table-warning-fix 2006-01-23 14:31:46.000000000 -0800 +++ devel-akpm/include/linux/device-mapper.h 2006-01-23 14:31:46.000000000 -0800 @@ -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; _