aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2017-08-28 16:38:21 +0300
committerDavid S. Miller <[email protected]>2017-08-29 14:58:32 -0700
commit187782eb58a89ea030731114c6ae37842a4472fe (patch)
tree3e5169e96f6ef674975c0d54a62589a2b5f3d06f /lib/mpi/mpi-cmp.c
parentc73c8b1e47ca275388f774fd36560ab7e994e99e (diff)
net/mlx4_core: Make explicit conversion to 64bit value
The "lg" variable is declared as int so in all places where this variable is used as a shift operand, the output will be int too. This produces the following smatch warning: drivers/net/ethernet/mellanox/mlx4/fw.c:1532 mlx4_map_cmd() warn: should '1 << lg' be a 64 bit type? Simple declaration of "1" to be "1ULL" will fix the issue. Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters") Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions