On Fri, Jan 25, 2013 at 08:11:06PM +0000, Alasdair G Kergon wrote: > On Thu, Dec 13, 2012 at 08:19:14PM +0000, Joe Thornber wrote: > > +static uint32_t calc_max_entries(size_t value_size, size_t block_size) > > +{ > > + return (block_size - sizeof(struct array_block)) / value_size; > > +} > > : warning: conversion to ‘uint32_t’ from ‘long unsigned int’ may alter its value Which tool are you using to get these warnings? I'm not seeing any with sparse or gcc, or perhaps you're building on a 32bit machine? -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel