Re: [PATCH] linux/dim: fix -Wunused-const-variable warnings

2019-07-22 Thread Saeed Mahameed
On Mon, 2019-07-22 at 09:08 -0400, Qian Cai wrote: > There are a lot of compilation warnings due to tx_profile[] and > rx_profile[] are only used in lib/dim/net_dim.c but > include/linux/dim.h > is included elsewhere. > > In file included from ./include/rdma/ib_verbs.h:64, > from

[PATCH] linux/dim: fix -Wunused-const-variable warnings

2019-07-22 Thread Qian Cai
There are a lot of compilation warnings due to tx_profile[] and rx_profile[] are only used in lib/dim/net_dim.c but include/linux/dim.h is included elsewhere. In file included from ./include/rdma/ib_verbs.h:64, from ./include/linux/mlx5/device.h:37, from ./include