diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-06-12 09:57:37 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-06-30 16:34:23 +0300 |
commit | 7999096fa9cfd0253497c8d2ed9a5a1537521d25 (patch) | |
tree | 461e813d6748825b84b48a8ffa2aaf606d726473 /arch/s390/lib | |
parent | 067c054fb9c90811ae38898ce649f8dafa13354c (diff) | |
download | linux-7999096fa9cfd0253497c8d2ed9a5a1537521d25.tar.xz |
iov_iter: Move unnecessary inclusion of crypto/hash.h
The header file linux/uio.h includes crypto/hash.h which pulls in
most of the Crypto API. Since linux/uio.h is used throughout the
kernel this means that every tiny bit of change to the Crypto API
causes the entire kernel to get rebuilt.
This patch fixes this by moving it into lib/iov_iter.c instead
where it is actually used.
This patch also fixes the ifdef to use CRYPTO_HASH instead of just
CRYPTO which does not guarantee the existence of ahash.
Unfortunately a number of drivers were relying on linux/uio.h to
provide access to linux/slab.h. This patch adds inclusions of
linux/slab.h as detected by build failures.
Also skbuff.h was relying on this to provide a declaration for
ahash_request. This patch adds a forward declaration instead.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r-- | arch/s390/lib/test_unwind.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/lib/test_unwind.c b/arch/s390/lib/test_unwind.c index 32b7a30b2485..eb382ceaa116 100644 --- a/arch/s390/lib/test_unwind.c +++ b/arch/s390/lib/test_unwind.c @@ -9,6 +9,7 @@ #include <linux/kallsyms.h> #include <linux/kthread.h> #include <linux/module.h> +#include <linux/slab.h> #include <linux/string.h> #include <linux/kprobes.h> #include <linux/wait.h> |