summaryrefslogtreecommitdiffstats
path: root/lib/chacha.c
diff options
context:
space:
mode:
authorLeon Romanovsky2019-07-23 09:22:48 +0200
committerDavid S. Miller2019-07-25 20:34:39 +0200
commitf8be17b81d44aed1f9ea68c3fc70f501c9616e2d (patch)
treea732473c0003c77063264a97d84a3b46b7f2dd78 /lib/chacha.c
parentlinux/dim: Fix overflow in dim calculation (diff)
downloadkernel-qcow2-linux-f8be17b81d44aed1f9ea68c3fc70f501c9616e2d.tar.gz
kernel-qcow2-linux-f8be17b81d44aed1f9ea68c3fc70f501c9616e2d.tar.xz
kernel-qcow2-linux-f8be17b81d44aed1f9ea68c3fc70f501c9616e2d.zip
lib/dim: Fix -Wunused-const-variable warnings
DIM causes to the following warnings during kernel compilation which indicates that tx_profile and rx_profile are supposed to be declared in *.c and not in *.h files. In file included from ./include/rdma/ib_verbs.h:64, from ./include/linux/mlx5/device.h:37, from ./include/linux/mlx5/driver.h:51, from ./include/linux/mlx5/vport.h:36, from drivers/infiniband/hw/mlx5/ib_virt.c:34: ./include/linux/dim.h:326:1: warning: _tx_profile_ defined but not used [-Wunused-const-variable=] 326 | tx_profile[DIM_CQ_PERIOD_NUM_MODES][NET_DIM_PARAMS_NUM_PROFILES] = { | ^~~~~~~~~~ ./include/linux/dim.h:320:1: warning: _rx_profile_ defined but not used [-Wunused-const-variable=] 320 | rx_profile[DIM_CQ_PERIOD_NUM_MODES][NET_DIM_PARAMS_NUM_PROFILES] = { | ^~~~~~~~~~ Fixes: 4f75da3666c0 ("linux/dim: Move implementation to .c files") Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Acked-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/chacha.c')
0 files changed, 0 insertions, 0 deletions