Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9036526ybi; Wed, 10 Jul 2019 03:38:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvgqWzkLlEfjHT7gvbMg5m98PSgpMn19RaM2NmPjKtZnCts6nClMoAlTC7jP9ASwEkoxVa X-Received: by 2002:a17:902:aa41:: with SMTP id c1mr37700834plr.201.1562755107166; Wed, 10 Jul 2019 03:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562755107; cv=none; d=google.com; s=arc-20160816; b=fTPAftj7f8rUB/pkLe+K0HuJIxiUnoUu94HiHLvinQANhfHifjbojT12k/+CJo0F7a 0brVHlelW/F2VHQsKZmNUtsNWB/p4Qd0mXImIeNousr4Wpx6vMDyZ5ERcpHBGfItrebs PstlaQy1bdybeOG+ZL2Z9xZ4x6YkESu3GZaJONOJeFS8h4lGdelENonSt0qBTu79/YX5 sPAO05goVaXG1lit/O9c+vQYASlCaPVKEakQ42Vyk0SNI+kbViApPFAhR2MOS/1dZm9o GFOTTYeFj/rHdPBNVuCV+rX0swAX6qDsN0IGAm8KTWPve7WLcmn3/UXpRq9YFv7Ig64L Oa/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9eczeFxHaJnWkVjsSHyrTXdSY6zFWBhZ9R92JimEKZA=; b=RDn0FoyxbBDTbxDnKS5mI65rr698GDCzEQ9NltjaubnQ8z0XeFlsp4eKu9wtGNga87 xc4HDDtdqRGAXvxxmxcywEqo3iZVCbNL164ZNoUTKK1Z0+WIRII6g3JFhUm9OKEXu+ir W49SZbobyO4TUAHXGzO57o/9EzdeeEqQ0qoiKovKl3eU5oADYujWGpgfuR0HusUSVwKS EiwNViqrOxwdmY5FklNZEjl+FiutWu52ZdB49tu00KR5/RfOJSKiJskWImMECQ6uQZK5 l6p4ZkdosL8g4xdxCskjmQ+ZuRZi1TdK7q4ReL8UH0nLtiVT3TwuD3ekOPCSY1OKdA/v H1Ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si1887035pjt.70.2019.07.10.03.38.11; Wed, 10 Jul 2019 03:38:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727319AbfGJJdE (ORCPT + 99 others); Wed, 10 Jul 2019 05:33:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2199 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726080AbfGJJdE (ORCPT ); Wed, 10 Jul 2019 05:33:04 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DC934521168DE750CA9A; Wed, 10 Jul 2019 17:32:59 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Wed, 10 Jul 2019 17:32:52 +0800 From: Mao Wenan To: , CC: , , Mao Wenan Subject: [PATCH net-next] net: mlx5: Fix compiling error in tls.c Date: Wed, 10 Jul 2019 17:38:52 +0800 Message-ID: <20190710093852.34549-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are some errors while compiling tls.c if CONFIG_MLX5_FPGA_TLS is not obvious on. drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c: In function mlx5e_tls_set_ipv4_flow: ./include/linux/mlx5/device.h:61:39: error: invalid application of sizeof to incomplete type struct mlx5_ifc_tls_flow_bits #define __mlx5_st_sz_bits(typ) sizeof(struct mlx5_ifc_##typ##_bits) ^ ./include/linux/compiler.h:330:9: note: in definition of macro __compiletime_assert if (!(condition)) \ ^~~~~~~~~ ... drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c: In function mlx5e_tls_build_netdev: drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:202:13: error: MLX5_ACCEL_TLS_TX undeclared (first use in this function); did you mean __MLX5_ACCEL_TLS_H__? if (caps & MLX5_ACCEL_TLS_TX) { ^~~~~~~~~~~~~~~~~ __MLX5_ACCEL_TLS_H__ drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:207:13: error: MLX5_ACCEL_TLS_RX undeclared (first use in this function); did you mean MLX5_ACCEL_TLS_TX? if (caps & MLX5_ACCEL_TLS_RX) { ^~~~~~~~~~~~~~~~~ MLX5_ACCEL_TLS_TX drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:212:15: error: MLX5_ACCEL_TLS_LRO undeclared (first use in this function); did you mean MLX5_ACCEL_TLS_RX? if (!(caps & MLX5_ACCEL_TLS_LRO)) { ^~~~~~~~~~~~~~~~~~ MLX5_ACCEL_TLS_RX make[5]: *** [drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [drivers/net/ethernet/mellanox/mlx5/core] Error 2 make[3]: *** [drivers/net/ethernet/mellanox] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [drivers/net/ethernet] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [drivers/net] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [drivers] Error 2 make: *** Waiting for unfinished jobs.... this patch is to fix this error using 'depends on MLX5_FPGA_TLS' when MLX5_TLS is set. Fixes: e2869fb2068b ("net/mlx5: Kconfig, Better organize compilation flags") Signed-off-by: Mao Wenan --- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig index 37fef8c..1da2770 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig @@ -139,6 +139,7 @@ config MLX5_TLS depends on MLX5_CORE_EN depends on TLS_DEVICE depends on TLS=y || MLX5_CORE=m + depends on MLX5_FPGA_TLS select MLX5_ACCEL default n help -- 2.7.4