iov_iter: Fix build error without CONFIG_CRYPTO
authorYueHaibing <yuehaibing@huawei.com>
Thu, 4 Apr 2019 02:31:14 +0000 (10:31 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 4 Apr 2019 02:37:41 +0000 (22:37 -0400)
commit27fad74a5a77fe2e1f876db7bf27efcf2ec304b2
tree6bb49f75fdcc7e92b63379a99edb296c2888e5d6
parent18bfb9c6a8a5fbfe1a732130bb8f65fcfc4e8aa2
iov_iter: Fix build error without CONFIG_CRYPTO

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@huawei.com>
Fixes: d05f443554b3 ("iov_iter: introduce hash_and_copy_to_iter helper")
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c