mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
a couple more compiler warnings
This commit is contained in:
parent
4e9083db10
commit
894c6af744
@ -524,7 +524,7 @@ static int _read_lvnames(struct format_instance *fid __attribute((unused)),
|
||||
case 0:
|
||||
lv->read_ahead = DM_READ_AHEAD_AUTO;
|
||||
break;
|
||||
case -1:
|
||||
case (uint32_t) -1:
|
||||
lv->read_ahead = DM_READ_AHEAD_NONE;
|
||||
break;
|
||||
default:
|
||||
|
@ -143,7 +143,7 @@ static struct labeller *_find_labeller(struct device *dev, char *buf,
|
||||
continue;
|
||||
}
|
||||
if (calc_crc(INITIAL_CRC, &lh->offset_xl, LABEL_SIZE -
|
||||
((void *) &lh->offset_xl - (void *) lh)) !=
|
||||
((uintptr_t) &lh->offset_xl - (uintptr_t) lh)) !=
|
||||
xlate32(lh->crc_xl)) {
|
||||
log_info("Label checksum incorrect on %s - "
|
||||
"ignoring", dev_name(dev));
|
||||
@ -322,7 +322,7 @@ int label_write(struct device *dev, struct label *label)
|
||||
return_0;
|
||||
|
||||
lh->crc_xl = xlate32(calc_crc(INITIAL_CRC, &lh->offset_xl, LABEL_SIZE -
|
||||
((void *) &lh->offset_xl - (void *) lh)));
|
||||
((uintptr_t) &lh->offset_xl - (uintptr_t) lh)));
|
||||
|
||||
if (!dev_open(dev))
|
||||
return_0;
|
||||
|
Loading…
Reference in New Issue
Block a user