Re: [PATCH] net/mlx5: Add a missing macro undefinition

2020-06-07 Thread David Miller
From: Hu Haowen Date: Sun, 7 Jun 2020 14:55:33 +0800 > > On 2020/6/7 2:36 PM, Leon Romanovsky wrote: >> On Sun, Jun 07, 2020 at 01:12:40PM +0800, Hu Haowen wrote: >>> The macro ODP_CAP_SET_MAX is only used in function >>> handle_hca_cap_odp() >>> in file main.c, so it should be undefined when th

Re: [PATCH] net/mlx5: Add a missing macro undefinition

2020-06-06 Thread Hu Haowen
On 2020/6/7 2:36 PM, Leon Romanovsky wrote: On Sun, Jun 07, 2020 at 01:12:40PM +0800, Hu Haowen wrote: The macro ODP_CAP_SET_MAX is only used in function handle_hca_cap_odp() in file main.c, so it should be undefined when there are no more uses of it. Signed-off-by: Hu Haowen --- drivers/n

Re: [PATCH] net/mlx5: Add a missing macro undefinition

2020-06-06 Thread Leon Romanovsky
On Sun, Jun 07, 2020 at 01:12:40PM +0800, Hu Haowen wrote: > The macro ODP_CAP_SET_MAX is only used in function handle_hca_cap_odp() > in file main.c, so it should be undefined when there are no more uses > of it. > > Signed-off-by: Hu Haowen > --- > drivers/net/ethernet/mellanox/mlx5/core/main.c

[PATCH] net/mlx5: Add a missing macro undefinition

2020-06-06 Thread Hu Haowen
The macro ODP_CAP_SET_MAX is only used in function handle_hca_cap_odp() in file main.c, so it should be undefined when there are no more uses of it. Signed-off-by: Hu Haowen --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ether