diff options
author | Greg Thelen <gthelen@google.com> | 2017-04-18 09:21:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-20 20:19:21 +0300 |
commit | 8dc7d11f1dbd3659bfba371aeb72b539db12a2d1 (patch) | |
tree | 594d913950b268d325962fbc780e6704a269d5b0 /Documentation/admin-guide/conf.py | |
parent | 7b9f6da175f9387ebfc202f35e0d39514899ab19 (diff) | |
download | linux-8dc7d11f1dbd3659bfba371aeb72b539db12a2d1.tar.xz |
net/mlx4: suppress 'may be used uninitialized' warning
gcc 4.8.4 complains that mlx4_SW2HW_MPT_wrapper() uses an uninitialized
'mpt' variable:
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c: In function 'mlx4_SW2HW_MPT_wrapper':
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:2802:12: warning: 'mpt' may be used uninitialized in this function [-Wmaybe-uninitialized]
mpt->mtt = mtt;
I think this warning is a false complaint. mpt is only used when
mr_res_start_move_to() return zero, and in all such cases it initializes
mpt. But apparently gcc cannot see that.
Initialize mpt to avoid the warning.
Signed-off-by: Greg Thelen <gthelen@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/admin-guide/conf.py')
0 files changed, 0 insertions, 0 deletions