]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Fix variable type to match 64bit
authorEran Ben Elisha <eranbe@nvidia.com>
Tue, 10 Aug 2021 18:15:05 +0000 (21:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:11 +0000 (13:42 +0200)
commit453fd12458d79d206c6485d7d40be49f61aceda9
tree1eb8f6965197965d50a26e8187d78187a5827f12
parentb7d05fbd0234773cc12161a13fcc6125b823e6f9
net/mlx5: Fix variable type to match 64bit

[ Upstream commit 979aa51967add26b37f9d77e01729d44a2da8e5f ]

Fix the following smatch warning:
wait_func_handle_exec_timeout() warn: should '1 << ent->idx' be a 64 bit type?

Use 1ULL, to have a 64 bit type variable.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eran Ben Elisha <eranbe@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c