Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3474503rwa; Tue, 23 Aug 2022 05:28:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5YjLIT8J583nuytT3991EGWzLbWoLt+tdao/ojt6LxdIePnwwHM2Ofb1+V9n4rO8dTQWab X-Received: by 2002:a17:90a:1d0e:b0:1fa:bf2e:a56e with SMTP id c14-20020a17090a1d0e00b001fabf2ea56emr3054492pjd.23.1661257739345; Tue, 23 Aug 2022 05:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661257739; cv=none; d=google.com; s=arc-20160816; b=pgsvbx+Rxv7foshkK6HaiK/utQvLbf+E6fsVunW3k2g+GPEgnV6yvjc1O4bvMZKSvC HstVrPbBlM35IvLVMnMUD448IkJLCOjRi9RMwe7kCmO9jjVHTHxZYhWFSAkd95SJWdgJ rd14zQkVeRSpq/9YyXkUSLcYokRfVyiHsLTDiosunvw83fUuJTaRw4SPUNM4PJDqTT3Y ksevtqc+rxp1uECbLW7z6eoAszXxjnOrIPSVD7KWdlDzSqjgnNbaqBuGibedruM1oPtN iRNl1SbbLu0S0VSF+/kKWBXXkHR4qgdvn3EWIU64ShsiYCQ5EUN25eKrzzbC5C2i9U3q y7KA== 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=mrLJ8fbCOn13RrVtUPNseeb3RDzfr+qhiAFogivaicE=; b=bOQk/Z/65/lU6DNZRfCJ//ideXsoBoX3k+ldRjubPB6tpdtJx5QX3ahl9hF+nl6SMh +spILrsma5g3YL4BnCArwYMXvQhOxvYHEvw19HtCs61yUJtEGvJ3vJVMII0uK6MkKE+3 Tmx9O8HiHwybX7Wthiaf4FWl1+GcIx4X4YZd7yQdRxx35P47GdsX35BmPAFRrt5MMIQj ddWcTOTMQTkiWhq/Wt9Lt+y1NV2kcynkdzHHdzhi8UyzxUwQ8p19+ne1/bzCVdOxerrM 9/y59vh4Cy/cNs6hOCVlXnL5w5ZYbv/Ka9ODsb08XWOHW1ibXv6mUMoobhCFT6rHGCOm 1qtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="qoQ/BxU0"; 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 qi4-20020a17090b274400b001faefe1cbd7si11971426pjb.158.2022.08.23.05.28.48; Tue, 23 Aug 2022 05:28:59 -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="qoQ/BxU0"; 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 S1356883AbiHWKwe (ORCPT + 99 others); Tue, 23 Aug 2022 06:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355846AbiHWKo4 (ORCPT ); Tue, 23 Aug 2022 06:44:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D1186880; Tue, 23 Aug 2022 02:10:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id D9336B81C66; Tue, 23 Aug 2022 09:10:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFB06C433C1; Tue, 23 Aug 2022 09:10:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245840; bh=rOtT2ckmil5KAQ6B8IHaMvbN4V0Br6QFkFcCFOmDcag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qoQ/BxU0PipQtjTvZxtNXixlYTax6a4SE9EgIAQyBU5vdN24rPsEAqZ0ubycznK3X MyMFNLTLLzRWiXp4RQHfak2xHoGvRHaTWAU3J5y8OAy8ltH7W6BkVhCGuXlsyzDX6H 2zL9rISrqj2cNyvXcpL/6wZY+lf6BudRXQfqgKis= 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.19 176/287] genelf: Use HAVE_LIBCRYPTO_SUPPORT, not the never defined HAVE_LIBCRYPTO Date: Tue, 23 Aug 2022 10:25:45 +0200 Message-Id: <20220823080106.687592053@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 aafbe54fd3fa..afb8fe3a8e35 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