Skip to content

Commit 2aa6854

Browse files
kanavinkdave
authored andcommitted
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 <alex@linutronix.de> [ add note ] Signed-off-by: David Sterba <dsterba@suse.com>
1 parent f09e9c9 commit 2aa6854

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crypto/blake2b-sse2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
#ifdef HAVE_SSE2
2424

2525
#include <emmintrin.h>
26+
#if defined(HAVE_SSSE3)
27+
#include <tmmintrin.h>
28+
#endif
2629
#if defined(HAVE_XOP)
2730
#include <x86intrin.h>
2831
#endif

0 commit comments

Comments
 (0)