Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp427901imn; Wed, 3 Aug 2022 09:44:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ITSN5+oM1i30zAgvWsTWTynTUil3daC5ntV+r8KThKXLBc+Pl1l8VlyG98T0rSNKrsa5O X-Received: by 2002:a17:906:98d4:b0:730:b545:fb5d with SMTP id zd20-20020a17090698d400b00730b545fb5dmr2576756ejb.532.1659545094773; Wed, 03 Aug 2022 09:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659545094; cv=none; d=google.com; s=arc-20160816; b=WfpPcU3CYA40BUbhHETfCsQ0URC/YiG68YhXn/HMN1pfeD3+YIlcwmzr1lny/w1xn8 RHmXjtg7SMsleq5w57G0BWnhxUdb8gma7BqEP96JRJ/xo0A+JDwWUA6ghlL/l0xQmO5y wAdyoW0uKAQqs1NH4ZY7J2Z9q1QyfP9tXeBkbeE/zp2YrbICQf4RKtj7fGU3QeJ9fVfz VFCHyc22r2pl5CZYbUh7xEQ3vQafob6BnvxliPRGFwuu5Zf4B9d/shlKtAmn5x/2IN0A D5uAKpkj2rhTmEodhIgzXIAdtccT5e6PF1ddUMmsESpU0I1QaH0Jv7EhmUqrHs4PApHn SZ0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Op/GWy+oh7aDDR1/28Z8enzQ8uHPA21HSP0a5I9QNXs=; b=MN67i8SC9GhhJXFAtHmw3wvlwGHQA7zf58bgntUDJDD2qb+d8y3Jzc/nnVgCCKDDmG zzfn+4s+E2AmR+eaUq0qoj5DShRxRVmkBPKsc09zN3j40DzBRzwb8mZZGSI/1+Z3wml5 ROE+gFJV/f40gOrpOzu2hWfJH5hzqN6eO2UCe1tt22/lRByaOYlFQod58bvnrwS1knkp 5E4lWhsrtN+ABZ20ap1zGhAJUw+UGgctfZrNVhHPlHutMOr2uNGFBgHoMJVl1Jeml8B2 JAmFQf/Sogz2PJj+BcL+ducZdWOxylgnsJ3y/i1C6B0nC27p84rYqg7ojlKk33eevJGJ r1Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B5xyF8os; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o22-20020a1709061b1600b00730ab782388si2701342ejg.797.2022.08.03.09.44.30; Wed, 03 Aug 2022 09:44:54 -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=@kernel.org header.s=k20201202 header.b=B5xyF8os; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238374AbiHCQB2 (ORCPT + 99 others); Wed, 3 Aug 2022 12:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238154AbiHCQBU (ORCPT ); Wed, 3 Aug 2022 12:01:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC18B48C97; Wed, 3 Aug 2022 09:01:12 -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 78064B82306; Wed, 3 Aug 2022 16:01:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08EB1C433D7; Wed, 3 Aug 2022 16:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659542470; bh=ag/lSTQWRd8gqBoVPmhF9Le1IGQ4IHOAtatLaz5Oc50=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B5xyF8osvAl4j2QkDFLrHszV+msLoA2Y7AIEdlCUxic278wSuJnZ6TsijTh3Tjkg2 wY4RyDxIqyTqFrfrXXSJmoNQPwWiTGrLW97FB/PaDHFHhhIi+p0/sApQBy+8F+NKCc XbWOQtcVGfw7xmOYZ9TNl8eCbuJLq6aOHiq0LmKuXVpiVVI8SK3vXmON+kxgZVnRDY TKf+FZSTvUf4TMXMn1Aa17Aeakz3Nb7Ri9piwSmaiO36Pdp/u+8wazZWXyMRV9Vono NeU8cNRYBt9emO+NtYyKlvLCuCchGmgKEkf+58AhXU6W37nlDO+Myp82lvPEwDDBjX eVBiXkGRfMUhA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 593C240736; Wed, 3 Aug 2022 13:01:07 -0300 (-03) Date: Wed, 3 Aug 2022 13:01:07 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Stephane Eranian , =?utf-8?B?6LCt5qKT54WK?= , Zixuan Tan , terrelln@fb.com, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] perf build: Suppress openssl v3 deprecation warnings in libcrypto feature test Message-ID: References: <20220625153439.513559-1-tanzixuan.me@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.7 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 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 Em Wed, Aug 03, 2022 at 09:32:48AM +0200, Jiri Olsa escreveu: > On Tue, Aug 02, 2022 at 03:09:05PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Aug 01, 2022 at 03:24:18PM +0200, Jiri Olsa escreveu: > > > On Tue, Jun 28, 2022 at 08:16:06AM +0200, Jiri Olsa wrote: > > > > On Mon, Jun 27, 2022 at 11:08:34AM +0800, 谭梓煊 wrote: > > > > > #ifdef HAVE_LIBCRYPTO <-- but check this, it's always false > > > > nice :) > > > > > #define BUILD_ID_MD5 > > > > > #undef BUILD_ID_SHA /* does not seem to work well when linked with Java */ > > > > > #undef BUILD_ID_URANDOM /* different uuid for each run */ > > > > > #ifdef BUILD_ID_SHA > > > > > #include > > > > > #endif > > > > > #ifdef BUILD_ID_MD5 > > > > > #include > > > > > #endif > > > > > #endif <-- this block will be skipped > > > > > ``` > > > > > Maybe we should fix this, to really make use of libcrypto if it is available? > > > > yea, I think that was the original idea, let's keep the variable with > > > > SUPPORT suffix and use the -Wdeprecated-declarations for genelf.c > > > > > > > > full fix would be to detect the new API and use it when it's available but.. > > > > given that the check was false at least since 2016, perhaps we could remove > > > > that code? ;-) Stephane? > > > > > > ping > > > > So, we should start with 谭梓煊 patch, then fix that ifdef and go on > > from there? > > yes, I thought we could remove that, but there's no reply from > Stephane so let's fix that Yeah, I did it and it seems to build, so lets ship it :-) - Arnaldo