From 2aa6854bb0721b56ebb5ca4ed37962b3bcff3d93 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 3 Mar 2023 07:59:41 +0100 Subject: [PATCH] btrfs-progs: crypto: add missing ssse3 header for blake2-sse2 implementation Otherwise, the following error occurs: | In file included from crypto/blake2b-sse2.c:30: | crypto/blake2b-sse2.c: In function 'blake2b_compress_sse2': | crypto/blake2b-round.h:32:22: warning: implicit declaration of function '_mm_shuffle_epi8'; did you mean '_mm_shuffle_epi32'? [-Wimplicit-function-declaration] | 32 | : (-(c) == 24) ? _mm_shuffle_epi8((x), r24) \ | | ^~~~~~~~~~~~~~~~ Note: it's not yet clear what affects this build failure as it otherwise builds in the tested configurations (gcc/clang, arch, distro), but it apparently fixes the build in some environments. Pull-request: #588 Signed-off-by: Alexander Kanavin [ add note ] Signed-off-by: David Sterba --- crypto/blake2b-sse2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/blake2b-sse2.c b/crypto/blake2b-sse2.c index 521a230c..546eec9c 100644 --- a/crypto/blake2b-sse2.c +++ b/crypto/blake2b-sse2.c @@ -23,6 +23,9 @@ #ifdef HAVE_SSE2 #include +#if defined(HAVE_SSSE3) +#include +#endif #if defined(HAVE_XOP) #include #endif