Re: [PATCH] crypto: chtls - Fix build error without IPV6

From: Herbert Xu
Date: Wed Apr 01 2020 - 18:54:28 EST


On Wed, Apr 01, 2020 at 08:09:09PM +0800, YueHaibing wrote:
> 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 <hulkci@xxxxxxxxxx>
> Fixes: 62370a4f346d ("cxgb4/chcr: Add ipv6 support and statistics")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
> drivers/crypto/chelsio/Kconfig | 1 +
> 1 file changed, 1 insertion(+)

Please send these patches via netdev.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt