Re: [PATCH 04/15] iio:ad5686: Mark transfer buffer as __be32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/25/13 12:41, Lars-Peter Clausen wrote:
> Fixes the following warnings from sparse:
> 	drivers/iio/dac/ad5686.c:100:25: warning: incorrect type in assignment (different base types)
> 	drivers/iio/dac/ad5686.c:100:25:    expected unsigned int [unsigned] [usertype] d32
> 	drivers/iio/dac/ad5686.c:100:25:    got restricted __be32 [usertype] <noident>
> 	drivers/iio/dac/ad5686.c:122:25: warning: incorrect type in assignment (different base types)
> 	drivers/iio/dac/ad5686.c:122:25:    expected unsigned int [unsigned] [usertype] d32
> 	drivers/iio/dac/ad5686.c:122:25:    got restricted __be32 [usertype] <noident>
> 	drivers/iio/dac/ad5686.c:124:25: warning: incorrect type in assignment (different base types)
> 	drivers/iio/dac/ad5686.c:124:25:    expected unsigned int [unsigned] [usertype] d32
> 	drivers/iio/dac/ad5686.c:124:25:    got restricted __be32 [usertype] <noident>
> 	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
> 	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
> 	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
> 	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
> 	drivers/iio/dac/ad5686.c:130:16: warning: cast to restricted __be32
> 	drivers/iio/dac/ad5686.c:130:16: 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/ad5686.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c
> index 30e506e..e56ec0a 100644
> --- a/drivers/iio/dac/ad5686.c
> +++ b/drivers/iio/dac/ad5686.c
> @@ -78,7 +78,7 @@ struct ad5686_state {
>  	 */
>  
>  	union {
> -		u32 d32;
> +		__be32 d32;
>  		u8 d8[4];
>  	} data[3] ____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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux