OSDN Git Service

net/mlx5e: Fix compilation error in TLS code
authorTariq Toukan <tariqt@mellanox.com>
Thu, 11 Jul 2019 19:39:55 +0000 (19:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jul 2019 22:04:38 +0000 (15:04 -0700)
commitc93dfec10f1d693a897bfd0d6e3a58a5ea7edc91
treee1d7dee80776d5d9007b0daa1cca294a53f6efac
parentd44e3fa5d7e6e9573c69f6f9f4f7f3200b0c9eee
net/mlx5e: Fix compilation error in TLS code

In the cited patch below, the Kconfig flags combination of:
CONFIG_MLX5_FPGA is not set
CONFIG_MLX5_TLS=y
CONFIG_MLX5_EN_TLS=y

leads to the compilation error:

./include/linux/mlx5/device.h:61:39: error: invalid application of
sizeof to incomplete type struct mlx5_ifc_tls_flow_bits.

Fix it.

Fixes: 90687e1a9a50 ("net/mlx5: Kconfig, Better organize compilation flags")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
CC: Mao Wenan <maowenan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/accel/tls.h