IB/mlx5: Fix compile issue when ODP disabled
authorDoug Ledford <dledford@redhat.com>
Wed, 19 Dec 2018 18:43:17 +0000 (13:43 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Dec 2018 18:43:17 +0000 (13:43 -0500)
commitc9e585ebdc28a334b8100e560c9aaad6d4525a6e
treebce0a278b41865c20ec20d959212152d4570c068
parente00b64f7c54c4cbd88143bbd43e7c3d61a090e5c
IB/mlx5: Fix compile issue when ODP disabled

When CONFIG_INFINIBAND_ON_DEMAND_PAGING is not enabled, we were getting
build failures for defined but not used code.  Fix that.

Fixes: 813e90b1aeaa ("IB/mlx5: Add advise_mr() support")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h