Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: powerpc - Include uaccess.h and others

The powerpc aes/ghash code was relying on pagefault_disable from
being pulled in by random header files.

Fix this by explicitly including uaccess.h. Also add other missing
header files to prevent similar problems in future.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+23 -11
+4 -4
arch/powerpc/crypto/aes.c
··· 7 7 * Author: Marcelo Henrique Cerri <mhcerri@br.ibm.com> 8 8 */ 9 9 10 - #include <linux/types.h> 11 - #include <linux/err.h> 12 - #include <linux/crypto.h> 13 - #include <linux/delay.h> 14 10 #include <asm/simd.h> 15 11 #include <asm/switch_to.h> 16 12 #include <crypto/aes.h> 17 13 #include <crypto/internal/cipher.h> 18 14 #include <crypto/internal/simd.h> 15 + #include <linux/err.h> 16 + #include <linux/kernel.h> 17 + #include <linux/module.h> 18 + #include <linux/uaccess.h> 19 19 20 20 #include "aesp8-ppc.h" 21 21
+4
arch/powerpc/crypto/aes_cbc.c
··· 12 12 #include <crypto/aes.h> 13 13 #include <crypto/internal/simd.h> 14 14 #include <crypto/internal/skcipher.h> 15 + #include <linux/err.h> 16 + #include <linux/kernel.h> 17 + #include <linux/module.h> 18 + #include <linux/uaccess.h> 15 19 16 20 #include "aesp8-ppc.h" 17 21
+4
arch/powerpc/crypto/aes_ctr.c
··· 12 12 #include <crypto/aes.h> 13 13 #include <crypto/internal/simd.h> 14 14 #include <crypto/internal/skcipher.h> 15 + #include <linux/err.h> 16 + #include <linux/kernel.h> 17 + #include <linux/module.h> 18 + #include <linux/uaccess.h> 15 19 16 20 #include "aesp8-ppc.h" 17 21
+4
arch/powerpc/crypto/aes_xts.c
··· 13 13 #include <crypto/internal/simd.h> 14 14 #include <crypto/internal/skcipher.h> 15 15 #include <crypto/xts.h> 16 + #include <linux/err.h> 17 + #include <linux/kernel.h> 18 + #include <linux/module.h> 19 + #include <linux/uaccess.h> 16 20 17 21 #include "aesp8-ppc.h" 18 22
+7 -7
arch/powerpc/crypto/ghash.c
··· 11 11 * Copyright (C) 2014 - 2018 Linaro Ltd. <ard.biesheuvel@linaro.org> 12 12 */ 13 13 14 - #include <linux/types.h> 15 - #include <linux/err.h> 16 - #include <linux/crypto.h> 17 - #include <linux/delay.h> 14 + #include "aesp8-ppc.h" 18 15 #include <asm/simd.h> 19 16 #include <asm/switch_to.h> 20 17 #include <crypto/aes.h> 18 + #include <crypto/b128ops.h> 21 19 #include <crypto/ghash.h> 22 - #include <crypto/scatterwalk.h> 23 20 #include <crypto/internal/hash.h> 24 21 #include <crypto/internal/simd.h> 25 - #include <crypto/b128ops.h> 26 - #include "aesp8-ppc.h" 22 + #include <crypto/scatterwalk.h> 23 + #include <linux/err.h> 24 + #include <linux/kernel.h> 25 + #include <linux/module.h> 26 + #include <linux/uaccess.h> 27 27 28 28 void gcm_init_p8(u128 htable[16], const u64 Xi[2]); 29 29 void gcm_gmult_p8(u64 Xi[2], const u128 htable[16]);