Commit da4cb617 authored by Herbert Xu's avatar Herbert Xu
Browse files

powerpc/crc: Include uaccess.h and others



The powerpc crc 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.

Reported-by: default avatarEric Biggers <ebiggers@kernel.org>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: 7ba8df47 ("asm-generic: Make simd.h more resilient")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 02db4285
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -6,15 +6,15 @@
 * [based on crc32c-vpmsum_glue.c]
 */

#include <linux/crc-t10dif.h>
#include <asm/switch_to.h>
#include <crypto/internal/simd.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/cpufeature.h>
#include <asm/simd.h>
#include <asm/switch_to.h>
#include <linux/crc-t10dif.h>
#include <linux/jump_label.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/preempt.h>
#include <linux/uaccess.h>

#define VMX_ALIGN		16
#define VMX_ALIGN_MASK		(VMX_ALIGN-1)
+7 −6
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
#include <linux/crc32.h>
#include <asm/switch_to.h>
#include <crypto/internal/simd.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/cpufeature.h>
#include <asm/simd.h>
#include <asm/switch_to.h>
#include <linux/crc32.h>
#include <linux/jump_label.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/preempt.h>
#include <linux/uaccess.h>

#define VMX_ALIGN		16
#define VMX_ALIGN_MASK		(VMX_ALIGN-1)