]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
iov_iter: Fix build error without CONFIG_CRYPTO
authorYueHaibing <yuehaibing@huawei.com>
Thu, 4 Apr 2019 02:31:14 +0000 (10:31 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 2 Jul 2019 10:07:53 +0000 (12:07 +0200)
commit7b1eadf10179748776f394082274367d1ae37748
tree7b368d4294d5cadd6f18efc355c9132f5af54f0e
parent67a943555cd0d1b10536d536e59eb6e964d7a104
iov_iter: Fix build error without CONFIG_CRYPTO

BugLink: https://bugs.launchpad.net/bugs/1834529
[ Upstream commit 27fad74a5a77fe2e1f876db7bf27efcf2ec304b2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
lib/iov_iter.c