mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[PATCH] dm: dm-table warning fix
drivers/md/dm-table.c:500: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Alasdair G Kergon <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
4aac0a63fe
commit
3ee247ebce
2 files changed
+2
-2
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user