On 11/25/13 12:41, Lars-Peter Clausen wrote: > Fixes the following warnings from sparse: > drivers/iio/dac/ad5755.c:117:25: warning: incorrect type in assignment (different base types) > drivers/iio/dac/ad5755.c:117:25: expected unsigned int [unsigned] [usertype] d32 > drivers/iio/dac/ad5755.c:117:25: got restricted __be32 [usertype] <noident> > drivers/iio/dac/ad5755.c:171:25: warning: incorrect type in assignment (different base types) > drivers/iio/dac/ad5755.c:171:25: expected unsigned int [unsigned] [usertype] d32 > drivers/iio/dac/ad5755.c:171:25: got restricted __be32 [usertype] <noident> > drivers/iio/dac/ad5755.c:172:25: warning: incorrect type in assignment (different base types) > drivers/iio/dac/ad5755.c:172:25: expected unsigned int [unsigned] [usertype] d32 > drivers/iio/dac/ad5755.c:172:25: got restricted __be32 [usertype] <noident> > drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32 > drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32 > drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32 > drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32 > drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32 > drivers/iio/dac/ad5755.c:176:23: warning: cast to restricted __be32 > > Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx> Applied to the togreg branch of iio.git Thanks, > --- > drivers/iio/dac/ad5755.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c > index 9a78d5a..bdf302d 100644 > --- a/drivers/iio/dac/ad5755.c > +++ b/drivers/iio/dac/ad5755.c > @@ -97,7 +97,7 @@ struct ad5755_state { > */ > > union { > - u32 d32; > + __be32 d32; > u8 d8[4]; > } data[2] ____cacheline_aligned; > }; > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html