Re: [PATCH v2] iov_iter: Fix build error without CONFIG_CRYPTO

From: Al Viro
Date: Wed Apr 03 2019 - 22:38:56 EST


On Thu, Apr 04, 2019 at 10:31:14AM +0800, Yue Haibing wrote:
> From: YueHaibing <yuehaibing@xxxxxxxxxx>
>
> If CONFIG_CRYPTO is not set or set to m,
> gcc building warn this:
>
> lib/iov_iter.o: In function `hash_and_copy_to_iter':
> iov_iter.c:(.text+0x9129): undefined reference to `crypto_stats_get'
> iov_iter.c:(.text+0x9152): undefined reference to `crypto_stats_ahash_update'
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Fixes: d05f443554b3 ("iov_iter: introduce hash_and_copy_to_iter helper")
> Suggested-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.