mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
|
case 0:
|
||||||
lv->read_ahead = DM_READ_AHEAD_AUTO;
|
lv->read_ahead = DM_READ_AHEAD_AUTO;
|
||||||
break;
|
break;
|
||||||
case -1:
|
case (uint32_t) -1:
|
||||||
lv->read_ahead = DM_READ_AHEAD_NONE;
|
lv->read_ahead = DM_READ_AHEAD_NONE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -143,7 +143,7 @@ static struct labeller *_find_labeller(struct device *dev, char *buf,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (calc_crc(INITIAL_CRC, &lh->offset_xl, LABEL_SIZE -
|
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)) {
|
xlate32(lh->crc_xl)) {
|
||||||
log_info("Label checksum incorrect on %s - "
|
log_info("Label checksum incorrect on %s - "
|
||||||
"ignoring", dev_name(dev));
|
"ignoring", dev_name(dev));
|
||||||
@ -322,7 +322,7 @@ int label_write(struct device *dev, struct label *label)
|
|||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
lh->crc_xl = xlate32(calc_crc(INITIAL_CRC, &lh->offset_xl, LABEL_SIZE -
|
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))
|
if (!dev_open(dev))
|
||||||
return_0;
|
return_0;
|
||||||
|
Loading…
Reference in New Issue
Block a user