Skip to content

Commit 91cea6b

Browse files
committed
genelf: Use HAVE_LIBCRYPTO_SUPPORT, not the never defined HAVE_LIBCRYPTO
When genelf was introduced it tested for HAVE_LIBCRYPTO not HAVE_LIBCRYPTO_SUPPORT, which is the define the feature test for openssl defines, fix it. This also adds disables the deprecation warning, someone has to fix this to build with openssl 3.0 before the warning becomes a hard error. Fixes: 9b07e27 ("perf inject: Add jitdump mmap injection support") Reported-by: 谭梓煊 <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Fastabend <[email protected]> Cc: KP Singh <[email protected]> Cc: Martin KaFai Lau <[email protected]> Cc: Nick Terrell <[email protected]> Cc: Song Liu <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 10fef86 commit 91cea6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/perf/util/genelf.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030

3131
#define BUILD_ID_URANDOM /* different uuid for each run */
3232

33-
#ifdef HAVE_LIBCRYPTO
33+
// FIXME, remove this and fix the deprecation warnings before its removed and
34+
// We'll break for good here...
35+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
36+
37+
#ifdef HAVE_LIBCRYPTO_SUPPORT
3438

3539
#define BUILD_ID_MD5
3640
#undef BUILD_ID_SHA /* does not seem to work well when linked with Java */

0 commit comments

Comments
 (0)