Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2882312rwb; Mon, 15 Aug 2022 13:14:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR5pezL+Jizih1zBbRMdoPcYfk6ItNqdw2cm2L0bwnRv07MpVSLZk1FVXwkKn92MrFNzvjk2 X-Received: by 2002:a17:90a:6007:b0:1fa:7c0c:a811 with SMTP id y7-20020a17090a600700b001fa7c0ca811mr6786268pji.146.1660594459326; Mon, 15 Aug 2022 13:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594459; cv=none; d=google.com; s=arc-20160816; b=byDhCOV1v/GqgQcpifweZRFvqHzwdWiSmqH6vXhzd3bULMjZtYkhUY4p4LLNhW2iqb lM5mJLSKguAAiAlEYMu+D+p7mbVkKP8Rxe0auwyLKEzeYe4zEQMAuebYFuvw3PzzYVPY TgFFm4WDzFNzhxU1yHF9IKWFu565tlOtIQuSYNWPnqwH0Cb/wZGL913yWDL/Xy5Anb9s tjn8LGKK5EbGDpUHFZ2synALLdR0Jsr2f++PaZcxs4bE/IwjjfDE2j1KeWN5ysXPlZsm Hz8mvOX0A/YHpwIH9PKAH2SY4CEP/mI0isLWdhN5jlnO4ste86KfGE0QgituUWhjJ42J PZEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iRBSmu1CajDMzgs9UAJFoq/8rV7LFnN3SrKYYpHxWmM=; b=p8/sTUXHldWyG6uM3hTuTtS5JVqujUHA4YhVAhutf3Vt8r+hEzWSv6Qh4qis2Hts87 N1pxZJD+nI19Q5relBzFqPuJdHJ2CYKHmH7Ijifb9EDvdAjcd2vZfRl+xOz3YMezoU9g d3U0zjTYCvIswEW1PRJYu8aF4F+Y/iKA0LkSc//t4zryda2OCnBV+SBUUq+CQ1o1jpf4 xLO3j8dSLPggleHdr4fFmwx0fxBkKMUwYciV9xdAKO1WV05EnNkMicUE+eYG6uPNhF5M dAMuJrXPv6FF7/oGgWcVjxBiAClR6bzUG2yA41ynQHSeTtN7IlRTTDYOtiQQmd9lcAuN QdjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="BO1VFK3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc11-20020a17090325cb00b0017087643e9fsi10248595plb.579.2022.08.15.13.14.07; Mon, 15 Aug 2022 13:14:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="BO1VFK3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344673AbiHOToN (ORCPT + 99 others); Mon, 15 Aug 2022 15:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344401AbiHOTkg (ORCPT ); Mon, 15 Aug 2022 15:40:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FD7640BD6; Mon, 15 Aug 2022 11:47:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3E17C611EF; Mon, 15 Aug 2022 18:47:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15AC8C433D7; Mon, 15 Aug 2022 18:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589230; bh=e25EplunFs+xhOssElaZHcLWfqW4P+ZY5UR2hRo+Ob0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BO1VFK3/uYHeZEON7oy3e+nF7UrZiz4wIJscHNGu6YdnoVYl8vkGmUQV1PoK/JVmM r+96UyLC3HEqHiqUceL2bhAwaHHlQc5sacmBeASkJnaX9MwaW5KmEQFWgH8IqsBwpa CdFk+hWu2oeje+cj3xJvv8DcRr3KTMdB+wZOtNU4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?=E8=B0=AD=E6=A2=93=E7=85=8A?= , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Jiri Olsa , John Fastabend , KP Singh , Martin KaFai Lau , Nick Terrell , Song Liu , Stephane Eranian , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.15 653/779] genelf: Use HAVE_LIBCRYPTO_SUPPORT, not the never defined HAVE_LIBCRYPTO Date: Mon, 15 Aug 2022 20:04:57 +0200 Message-Id: <20220815180405.286310016@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo [ 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: 谭梓煊 Cc: Alexei Starovoitov Cc: Andrii Nakryiko Cc: Daniel Borkmann Cc: Jiri Olsa Cc: John Fastabend Cc: KP Singh Cc: Martin KaFai Lau Cc: Nick Terrell Cc: Song Liu Cc: Stephane Eranian Link: http://lore.kernel.org/lkml/YulpPqXSOG0Q4J1o@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- 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