Re: [PATCH] net: sfc: avoid -Wtype-limits warning

2016-06-16 Thread David Miller
From: Arnd Bergmann Date: Wed, 15 Jun 2016 22:31:10 +0200 > When building with -Wextra, we get a harmless warning from the > EFX_EXTRACT_OWORD32 macro: > > ethernet/sfc/farch.c: In function 'efx_farch_test_registers': > ethernet/sfc/farch.c:119:30: error: comparison of unsigned

Re: [PATCH] net: sfc: avoid -Wtype-limits warning

2016-06-16 Thread Bert Kenward
On 15/06/16 21:31, Arnd Bergmann wrote: > When building with -Wextra, we get a harmless warning from the > EFX_EXTRACT_OWORD32 macro: > > ethernet/sfc/farch.c: In function 'efx_farch_test_registers': > ethernet/sfc/farch.c:119:30: error: comparison of unsigned expression < 0 is > always false

[PATCH] net: sfc: avoid -Wtype-limits warning

2016-06-15 Thread Arnd Bergmann
When building with -Wextra, we get a harmless warning from the EFX_EXTRACT_OWORD32 macro: ethernet/sfc/farch.c: In function 'efx_farch_test_registers': ethernet/sfc/farch.c:119:30: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits] ethernet/sfc/farch.c:124:144: