summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2017-08-04 15:10:12 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2017-08-04 15:10:12 +0100
commit174dfb12860eac361f3ced9fefb51393fec5bd32 (patch)
tree0fe3dc6f5bec61ac0f462fbd8a622fd7b6b4c14b /arch/arm64/include
parentcb84d11e1625aa3a081d898ca2640bf3a9ca0e96 (diff)
downloadlinux-stable-174dfb12860eac361f3ced9fefb51393fec5bd32.tar.gz
linux-stable-174dfb12860eac361f3ced9fefb51393fec5bd32.tar.bz2
linux-stable-174dfb12860eac361f3ced9fefb51393fec5bd32.zip
arm64: neon: Temporarily add a kernel_mode_begin_partial() definition
The crypto code currently relies on kernel_mode_begin_partial() being available. Until the corresponding crypto patches are merged, define this macro temporarily, though with different semantics as it cannot be called in interrupt context. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/neon.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/neon.h b/arch/arm64/include/asm/neon.h
index fb9d137256a6..f922eaf780f9 100644
--- a/arch/arm64/include/asm/neon.h
+++ b/arch/arm64/include/asm/neon.h
@@ -19,4 +19,11 @@
void kernel_neon_begin(void);
void kernel_neon_end(void);
+/*
+ * Temporary macro to allow the crypto code to compile. Note that the
+ * semantics of kernel_neon_begin_partial() are now different from the
+ * original as it does not allow being called in an interrupt context.
+ */
+#define kernel_neon_begin_partial(num_regs) kernel_neon_begin()
+
#endif /* ! __ASM_NEON_H */