diff mbox series

powerpc/crc: include <linux/uaccess.h>

Message ID 20250416171439.226938-1-ebiggers@kernel.org
State New
Headers show
Series powerpc/crc: include <linux/uaccess.h> | expand

Commit Message

Eric Biggers April 16, 2025, 5:14 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

Since <asm/simd.h> no longer transitively includes <linux/uaccess.h>
which provides pagefault_disable() and pagefault_enable(),
<linux/uaccess.h> now needs to be included directly.

Fixes: 7ba8df47810f ("asm-generic: Make simd.h more resilient")
Signed-off-by: Eric Biggers <ebiggers@google.com>
---

I can take this via the crc tree, but it really should go via crypto
since the patch that broke this is in there...

 arch/powerpc/lib/crc-t10dif-glue.c | 1 +
 arch/powerpc/lib/crc32-glue.c      | 1 +
 2 files changed, 2 insertions(+)


base-commit: 5f7325fbb3d416ba66f163a9272e17d70f1d9bf4
diff mbox series

Patch

diff --git a/arch/powerpc/lib/crc-t10dif-glue.c b/arch/powerpc/lib/crc-t10dif-glue.c
index ddd5c4088f50..c48284f7b582 100644
--- a/arch/powerpc/lib/crc-t10dif-glue.c
+++ b/arch/powerpc/lib/crc-t10dif-glue.c
@@ -11,10 +11,11 @@ 
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/cpufeature.h>
+#include <linux/uaccess.h>
 #include <asm/simd.h>
 #include <asm/switch_to.h>
 
 #define VMX_ALIGN		16
 #define VMX_ALIGN_MASK		(VMX_ALIGN-1)
diff --git a/arch/powerpc/lib/crc32-glue.c b/arch/powerpc/lib/crc32-glue.c
index 42f2dd3c85dd..d7f57576c74e 100644
--- a/arch/powerpc/lib/crc32-glue.c
+++ b/arch/powerpc/lib/crc32-glue.c
@@ -3,10 +3,11 @@ 
 #include <crypto/internal/simd.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/cpufeature.h>
+#include <linux/uaccess.h>
 #include <asm/simd.h>
 #include <asm/switch_to.h>
 
 #define VMX_ALIGN		16
 #define VMX_ALIGN_MASK		(VMX_ALIGN-1)