diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-02-20 21:56:27 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-03-14 18:24:13 -0400 |
commit | bd8602ca42f6d8b25392a8f2a0e7be34e1206618 (patch) | |
tree | d5188802e4406dc5bd9af5bc3ab3a1d56e50f860 /include/linux/mlx5/driver.h | |
parent | 5388a508479d8b7e6d24fe5ca2645806d8e3d0f1 (diff) | |
download | linux-bd8602ca42f6d8b25392a8f2a0e7be34e1206618.tar.gz linux-bd8602ca42f6d8b25392a8f2a0e7be34e1206618.tar.bz2 linux-bd8602ca42f6d8b25392a8f2a0e7be34e1206618.zip |
infiniband: bnxt_re: use BIT_ULL() for 64-bit bit masks
On 32-bit targets, we otherwise get a warning about an impossible constant
integer expression:
In file included from include/linux/kernel.h:11,
from include/linux/interrupt.h:6,
from drivers/infiniband/hw/bnxt_re/ib_verbs.c:39:
drivers/infiniband/hw/bnxt_re/ib_verbs.c: In function 'bnxt_re_query_device':
include/linux/bitops.h:7:24: error: left shift count >= width of type [-Werror=shift-count-overflow]
#define BIT(nr) (1UL << (nr))
^~
drivers/infiniband/hw/bnxt_re/bnxt_re.h:61:34: note: in expansion of macro 'BIT'
#define BNXT_RE_MAX_MR_SIZE_HIGH BIT(39)
^~~
drivers/infiniband/hw/bnxt_re/bnxt_re.h:62:30: note: in expansion of macro 'BNXT_RE_MAX_MR_SIZE_HIGH'
#define BNXT_RE_MAX_MR_SIZE BNXT_RE_MAX_MR_SIZE_HIGH
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/bnxt_re/ib_verbs.c:149:25: note: in expansion of macro 'BNXT_RE_MAX_MR_SIZE'
ib_attr->max_mr_size = BNXT_RE_MAX_MR_SIZE;
^~~~~~~~~~~~~~~~~~~
Fixes: 872f3578241d ("RDMA/bnxt_re: Add support for MRs with Huge pages")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
0 files changed, 0 insertions, 0 deletions