]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Eliminate query xsrq dead code
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 14 Feb 2018 01:07:02 +0000 (17:07 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 30 Mar 2018 23:16:17 +0000 (16:16 -0700)
commitf03ae58954a3f6458f3715ae47604f74c1629688
treede64262f2f4ee8e4e9901e7685b6a32675b12479
parent81a3eeb6eae5bfcda8034393d9dc075cc567c4ed
net/mlx5: Eliminate query xsrq dead code

1. This function is not used anywhere in mlx5 driver
2. It has a memcpy statement that makes no sense and produces build
warning with gcc8

drivers/net/ethernet/mellanox/mlx5/core/transobj.c: In function 'mlx5_core_query_xsrq':
drivers/net/ethernet/mellanox/mlx5/core/transobj.c:347:3: error: 'memcpy' source argument is the same as destination [-Werror=restrict]

Fixes: b651ad62fc18 ("net/mlx5_core: Enable XRCs and SRQs when using ISSI > 0")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/transobj.c
include/linux/mlx5/transobj.h