Skip to contentSkip to conversation

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

PATCH New Eric Biggers 1 participant 1 message Apr 16, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

From: Eric Biggers <[email protected]>

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")

---

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(+)
arch/powerpc/lib/crc-t10dif-glue.c +1 -0
index ddd5c4088f50..c48284f7b582 100644
@@ -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)
arch/powerpc/lib/crc32-glue.c +1 -0
index 42f2dd3c85dd..d7f57576c74e 100644
@@ -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)

base-commit: 5f7325fbb3d416ba66f163a9272e17d70f1d9bf4

Signature · 1 line
2.49.0