Arnd Bergmann
a4256bc9ec
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 >
2016-10-29 14:53:48 -04:00
..
2016-10-12 11:05:23 -07:00
2016-10-07 18:46:28 -07:00
2016-10-11 15:06:33 -07:00
2016-10-20 10:14:49 +02:00
2016-10-07 21:23:40 -07:00
2016-10-11 23:38:39 -07:00
2016-10-07 21:34:49 -07:00
2016-10-07 21:23:40 -07:00
2016-10-06 07:59:37 -07:00
2016-10-07 18:46:30 -07:00
2016-10-10 14:04:16 -07:00
2016-10-07 16:46:30 -07:00
2016-09-19 13:36:20 +02:00
2016-10-06 17:13:54 -07:00
2016-10-11 18:12:22 -07:00
2016-10-04 12:06:26 -07:00
2016-10-07 21:23:40 -07:00
2016-10-07 14:12:21 -07:00
2016-10-11 18:12:22 -07:00
2016-10-07 11:58:38 -07:00
2016-09-27 12:35:49 +02:00
2016-10-04 10:56:14 -07:00
2016-10-07 14:12:21 -07:00
2016-10-07 18:46:30 -07:00
2016-10-05 14:50:51 -07:00
2016-10-29 12:00:39 -04:00
2016-10-11 17:34:10 -07:00
2016-10-11 12:52:41 -07:00
2016-10-11 17:34:10 -07:00
2016-09-20 10:22:10 +02:00
2016-10-07 14:42:05 -07:00
2016-09-20 20:57:12 +10:00
2016-10-06 17:36:53 -07:00
2016-09-27 12:33:47 +02:00
2016-10-11 15:06:33 -07:00
2016-10-11 17:34:10 -07:00
2016-10-07 21:23:40 -07:00
2016-10-07 08:35:35 -07:00
2016-10-10 20:16:43 -07:00
2016-10-03 20:17:35 -07:00
2016-10-11 17:34:10 -07:00
2016-10-29 14:53:48 -04:00
2016-10-07 16:46:30 -07:00
2016-10-11 15:06:32 -07:00
2016-10-07 21:23:40 -07:00
2016-10-11 12:52:41 -07:00
2016-10-10 20:16:43 -07:00
2016-10-13 17:08:58 -07:00
2016-09-22 09:39:16 +01:00
2016-10-07 21:23:40 -07:00
2016-10-07 21:23:40 -07:00
2016-10-13 16:52:39 -07:00
2016-10-06 18:21:15 -07:00
2016-10-11 15:06:32 -07:00
2016-09-20 20:57:12 +10:00
2016-10-13 10:20:06 -04:00
2016-10-11 15:06:32 -07:00
2016-10-12 11:05:23 -07:00
2016-10-06 17:03:49 -07:00
2016-10-04 15:47:01 +01:00
2016-10-07 09:28:53 -07:00
2016-10-09 17:29:33 -07:00
2016-10-07 21:23:40 -07:00
2016-10-11 15:06:33 -07:00
2016-09-27 12:43:34 +02:00
2016-10-11 17:34:10 -07:00
2016-10-12 11:05:23 -07:00
2016-10-11 15:06:33 -07:00
2016-10-11 15:06:33 -07:00
2016-09-29 13:36:38 -06:00
2016-10-12 11:01:37 -07:00
2016-09-27 12:43:35 +02:00
2016-10-13 16:44:20 -07:00
2016-10-06 11:19:10 -07:00
2016-09-23 13:00:04 +02:00