lkml.org 
[lkml]   [2022]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.19 1017/1157] genelf: Use HAVE_LIBCRYPTO_SUPPORT, not the never defined HAVE_LIBCRYPTO
    Date
    From: Arnaldo Carvalho de Melo <acme@redhat.com>

    [ Upstream commit 91cea6be90e436c55cde8770a15e4dac9d3032d0 ]

    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: 9b07e27f88b9cd78 ("perf inject: Add jitdump mmap injection support")
    Reported-by: 谭梓煊 <tanzixuan.me@gmail.com>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Cc: Andrii Nakryiko <andrii@kernel.org>
    Cc: Daniel Borkmann <daniel@iogearbox.net>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: John Fastabend <john.fastabend@gmail.com>
    Cc: KP Singh <kpsingh@kernel.org>
    Cc: Martin KaFai Lau <kafai@fb.com>
    Cc: Nick Terrell <terrelln@fb.com>
    Cc: Song Liu <songliubraving@fb.com>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lore.kernel.org/lkml/YulpPqXSOG0Q4J1o@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    tools/perf/util/genelf.c | 6 +++++-
    1 file changed, 5 insertions(+), 1 deletion(-)

    diff --git a/tools/perf/util/genelf.c b/tools/perf/util/genelf.c
    index aed49806a09b..953338b9e887 100644
    --- a/tools/perf/util/genelf.c
    +++ b/tools/perf/util/genelf.c
    @@ -30,7 +30,11 @@

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

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

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


    \
     
     \ /
      Last update: 2022-08-16 06:49    [W:3.814 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site