linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] asm-generic: make simd.h a mandatory include/asm header
@ 2019-07-29  9:55 Ard Biesheuvel
  2019-07-29 10:32 ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Ard Biesheuvel @ 2019-07-29  9:55 UTC (permalink / raw)
  To: linux-crypto; +Cc: herbert, geert, linux-arch, arnd, Ard Biesheuvel

The generic aegis128 software crypto driver recently gained support
for using SIMD intrinsics to increase performance, for which it
uncondionally #include's the <asm/simd.h> header. Unfortunately,
this header does not exist on many architectures, resulting in
build failures.

Since asm-generic already has a version of simd.h, let's make it
a mandatory header so that it gets instantiated on all architectures
that don't provide their own version.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 include/asm-generic/Kbuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild
index 6f4536d70b8e..adff14fcb8e4 100644
--- a/include/asm-generic/Kbuild
+++ b/include/asm-generic/Kbuild
@@ -3,3 +3,5 @@
 # asm headers that all architectures except um should have
 # (This file is not included when SRCARCH=um since UML borrows several
 # asm headers from the host architecutre.)
+
+mandatory-y += simd.h
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-29 12:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-29  9:55 [PATCH] asm-generic: make simd.h a mandatory include/asm header Ard Biesheuvel
2019-07-29 10:32 ` Arnd Bergmann
2019-07-29 10:45   ` Ard Biesheuvel
2019-07-29 12:19     ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).