Search Linux Wireless

Re: [PATCH] p54: two endian fixes

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

 



> This patch fixes all CHECK_ENDIAN complains:
> 
> 1. p54/fwio.c:296:6: warning: restricted __le32 degrades to integer
>     p54/fwio.c:296:6: warning: restricted __le32 degrades to integer
> 
> 2. p54/p54spi.c:172:32: warning: incorrect type in initializer
>    p54spi.c:172:32:    expected restricted __le32 [usertype] buffer
>    p54/p54spi.c:172:32:    got unsigned int
> 
> Signed-off-by: Christian Lamparter <chunkeey@xxxxxx>
> ---
> Max,
> 
> drivers/net/wireless/p54/p54spi.c:115: warning: ‘p54spi_read16’ defined but not used
> 
> looks like this function can be nuked, or do you have plans with it?

No, no plans. Also there's unused p54spi_registers_array, which seems to be cx3110x legacy.

>  	for (i = 0; i < 2000; i++) {
> -		__le32 buffer = p54spi_read32(priv, reg);
> +		u32 buffer = p54spi_read32(priv, reg);
>  		if ((buffer & bits) == bits)
>  			return 1;
>  	}

You're right, my fault. There used to be p54spi_spi_read here, which didn't convert endianness.

Thanks.
-- Max
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux