[dm-devel] [PATCH 6/8] [persistent-data] Add a transactional array.

thornber at redhat.com thornber at redhat.com
Mon Jan 28 13:06:28 UTC 2013


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?




More information about the dm-devel mailing list