diff options
author | Arnd Bergmann <[email protected]> | 2016-06-15 22:31:10 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-06-16 14:24:06 -0700 |
commit | 17471c7ba5115ed724d624577b21c166d2194272 (patch) | |
tree | 9335bac4f81405c90f41c0ffd6f02969a8a5f21a /lib/netdev-notifier-error-inject.c | |
parent | 13eab83f9b3566ab425a43bb65b2ba22cb0abbba (diff) |
net: sfc: avoid -Wtype-limits warning
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: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
ethernet/sfc/farch.c:124:392: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
ethernet/sfc/farch.c:124:731: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
The macro and the caller are both correct, but we can avoid the
warning by changing the index variable to a signed type.
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Bert Kenward <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions