diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-10-25 19:16:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-29 21:53:48 +0300 |
commit | a4256bc9ec36159e84d710c7c44aaa244a6380a8 (patch) | |
tree | 1b58dfbb740c7538f51aeb9a1bab1aba8f5e5198 /drivers/uio | |
parent | ae148b085876fa771d9ef2c05f85d4b4bf09ce0d (diff) | |
download | linux-a4256bc9ec36159e84d710c7c44aaa244a6380a8.tar.xz |
IB/mlx4: avoid a -Wmaybe-uninitialize warning
There is an old warning about mlx4_SW2HW_EQ_wrapper on x86:
ethernet/mellanox/mlx4/resource_tracker.c: In function ‘mlx4_SW2HW_EQ_wrapper’:
ethernet/mellanox/mlx4/resource_tracker.c:3071:10: error: ‘eq’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
The problem here is that gcc won't track the state of the variable
across a spin_unlock. Moving the assignment out of the lock is
safe here and avoids the warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/uio')
0 files changed, 0 insertions, 0 deletions