From: Eric Biggers <ebiggers@kernel.org>
To: linux-crypto@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
Ard Biesheuvel <ardb@kernel.org>
Subject: [PATCH] powerpc/crc: include <linux/uaccess.h>
Date: Wed, 16 Apr 2025 10:14:39 -0700 [thread overview]
Message-ID: <20250416171439.226938-1-ebiggers@kernel.org> (raw)
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(+)
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)
base-commit: 5f7325fbb3d416ba66f163a9272e17d70f1d9bf4
--
2.49.0
reply other threads:[~2025-04-16 17:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250416171439.226938-1-ebiggers@kernel.org \
--to=ebiggers@kernel.org \
--cc=ardb@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®