From patchwork Thu Apr 2 01:43:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11469781 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 69D1514DD for ; Thu, 2 Apr 2020 02:02:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5018220675 for ; Thu, 2 Apr 2020 02:02:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732498AbgDBCCV (ORCPT ); Wed, 1 Apr 2020 22:02:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12598 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727135AbgDBCCV (ORCPT ); Wed, 1 Apr 2020 22:02:21 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3FD3FC06D72E6BC5008D; Thu, 2 Apr 2020 10:02:18 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Thu, 2 Apr 2020 10:02:03 +0800 From: YueHaibing To: , , , , CC: , , , YueHaibing Subject: [PATCH net] crypto: chtls - Fix build error without IPV6 Date: Thu, 2 Apr 2020 09:43:23 +0800 Message-ID: <20200402014323.36492-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org If IPV6 is not set, build fails: drivers/crypto/chelsio/chcr_ktls.c: In function ‘chcr_ktls_act_open_req6’: ./include/net/sock.h:380:37: error: ‘struct sock_common’ has no member named ‘skc_v6_rcv_saddr’; did you mean ‘skc_rcv_saddr’? #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr ^ drivers/crypto/chelsio/chcr_ktls.c:258:37: note: in expansion of macro ‘sk_v6_rcv_saddr’ cpl->local_ip_hi = *(__be64 *)&sk->sk_v6_rcv_saddr.in6_u.u6_addr8[0]; ^~~~~~~~~~~~~~~ Add IPV6 dependency to fix this. Reported-by: Hulk Robot Fixes: 62370a4f346d ("cxgb4/chcr: Add ipv6 support and statistics") Signed-off-by: YueHaibing --- drivers/crypto/chelsio/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/chelsio/Kconfig b/drivers/crypto/chelsio/Kconfig index f2756836093f..7bf1d8152a5d 100644 --- a/drivers/crypto/chelsio/Kconfig +++ b/drivers/crypto/chelsio/Kconfig @@ -47,6 +47,7 @@ config CHELSIO_TLS_DEVICE bool "Chelsio Inline KTLS Offload" depends on CHELSIO_T4 depends on TLS_DEVICE + depends on IPV6 select CRYPTO_DEV_CHELSIO default y help