diff options
| author | Leon Romanovsky <[email protected]> | 2017-08-17 12:50:42 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2017-08-24 20:27:10 +0000 |
| commit | 623248955d985b86cd778c63efe6a7ad03a018c4 (patch) | |
| tree | 63601fc6487422c600b928b5b367cd83ce7fe2d9 /drivers/infiniband/hw/mlx4/alias_GUID.c | |
| parent | RDMA/usnic: Fix remove address space warning (diff) | |
| download | kernel-623248955d985b86cd778c63efe6a7ad03a018c4.tar.gz kernel-623248955d985b86cd778c63efe6a7ad03a018c4.zip | |
RDMA/mthca: 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/infiniband/hw/mthca/mthca_cmd.c:701 mthca_map_cmd() warn:
should '1 << lg' be a 64 bit type?
Simple declaration of "1" to be "1ULL" will fix the issue.
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/alias_GUID.c')
0 files changed, 0 insertions, 0 deletions
