Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3407244rwa; Tue, 23 Aug 2022 04:23:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KUFFIkQf1ToJGti0rv1oLB/WmCb+x6a1HMcJxhH1juo15mUgnsdl317Bn5FeZUbe/0KzQ X-Received: by 2002:a17:90a:bf0a:b0:1fa:b53c:3f3a with SMTP id c10-20020a17090abf0a00b001fab53c3f3amr2871554pjs.126.1661253780849; Tue, 23 Aug 2022 04:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253780; cv=none; d=google.com; s=arc-20160816; b=nON93Y39wMdjHY3p9E917qWktoUe7DVz5LwjXkb3EFbwMvwQNnnu0JG18+2kS9yKcw p7Q+vWRBbpVMvUIF6Abp9im9qWhnMtqRXmnS6EdfNOWQP0uJrOC+q9ijbnnHYlhRJ+dV sAtsffXKJA14AwR12eY7ZThXb51X9tnAt85mS92reTjvQRn1UC7K2epXPT0V6g/+jGk7 Cs+P/p2MG/5KAwnj3S8FUkmr+y66TIFBiSzvxgALlKu8OTizR3dM9VL/ubf/J3hMy8BK g5MrVcDj824pZoe/qdmXhRecPZY9psWu3QxM2LTxyX40NSmdR2nHwddsoy5Ntv59aXLL YjEw== 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=940x+3cOUlsjuj1KG2vUT8g8l535R+U+IxNx6NdINy8=; b=s9i+ateqmd7bASgC9jlolhmg/fIs2QGKHZcIVN7P+IG3RJAj8gpksbH8aNAM72jqDt ynEVFS1TC9ntTaF0UqDPpL8EAWQLCdX+KHaD2f5xol40+h9OksIoqP3EMFW7RltmmUhF U1EIFrgUv5KwEKbEVbrS0jAWIS25etXwM7/tot34nRLP4UA1t2/3u7mL/Uqi57XcwAXK QSVNHtjZ4U7lFD/9hsQ5wysUf4ZG0RnMsXfAUNIAk6llLTy+KV+WY5Ec5Z73ul6U7pGZ /jbQWWyT1PRL1Xn5DJELrQc4lt1MyTEvfTt7glBOkHwG/M7RPZfUnJ/6UK1ijlM6a17s p9rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oE+o2AH+; 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 z13-20020a056a00240d00b0052b8a92ed84si16261789pfh.172.2022.08.23.04.22.49; Tue, 23 Aug 2022 04:23:00 -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=oE+o2AH+; 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 S1351788AbiHWKDd (ORCPT + 99 others); Tue, 23 Aug 2022 06:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242856AbiHWJ5v (ORCPT ); Tue, 23 Aug 2022 05:57:51 -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 944F0A1D04; Tue, 23 Aug 2022 01:47:54 -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 A0640614E9; Tue, 23 Aug 2022 08:47:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70653C433D6; Tue, 23 Aug 2022 08:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244472; bh=CY49xwXKB0Rto104rE1C9k3u/W9bO7VSoKqt0iyrc0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oE+o2AH+ofoVRpg8lTA/E6/6C2Vsz/Jb+oT7jRzXHYEBJyuE/SzNdQEBUZXxbt/Zr 3kpqUHW2rF6cDLdcu3tkzmo5gDmTYqarM56kM+XpLNEYawP1ajnrKGRxwW5XYz3tlX ptFxnH1HVbYhZHSXNNnarLdYaMhJc8Voir0k7QV4= 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 4.14 142/229] genelf: Use HAVE_LIBCRYPTO_SUPPORT, not the never defined HAVE_LIBCRYPTO Date: Tue, 23 Aug 2022 10:25:03 +0200 Message-Id: <20220823080058.751627291@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080053.202747790@linuxfoundation.org> References: <20220823080053.202747790@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 c540d47583e7..ad64ff620c75 100644 --- a/tools/perf/util/genelf.c +++ b/tools/perf/util/genelf.c @@ -35,7 +35,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