aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErez Shitrit <[email protected]>2020-03-10 09:57:06 +0200
committerJason Gunthorpe <[email protected]>2020-03-10 14:39:09 -0300
commit0897f301bc285409ab6453839fa6a43d9ceb26e0 (patch)
treea1bd6bd57961197054a522f18fc029cfbf7e9b9a
parent2d870c5bd0acd42eced3860c3911ed6005654a2d (diff)
RDMA/mlx5: Remove duplicate definitions of SW_ICM macros
Those macros are already defined in include/linux/mlx5/driver.h, so delete their duplicate variants. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ariel Levkovich <[email protected]> Signed-off-by: Yevgeny Kliteynik <[email protected]> Signed-off-by: Erez Shitrit <[email protected]> Reviewed-by: Alex Vesker <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
-rw-r--r--drivers/infiniband/hw/mlx5/mlx5_ib.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index 798366bf6dd5..2e42258e6fce 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -128,10 +128,6 @@ enum mlx5_ib_mmap_type {
MLX5_IB_MMAP_TYPE_VAR = 2,
};
-#define MLX5_LOG_SW_ICM_BLOCK_SIZE(dev) \
- (MLX5_CAP_DEV_MEM(dev, log_sw_icm_alloc_granularity))
-#define MLX5_SW_ICM_BLOCK_SIZE(dev) (1 << MLX5_LOG_SW_ICM_BLOCK_SIZE(dev))
-
struct mlx5_ib_ucontext {
struct ib_ucontext ibucontext;
struct list_head db_page_list;