Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5114365iog; Wed, 22 Jun 2022 12:17:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1stVx4CyYNEEJKSfYOeL564YT5FOfLISXMNCxHT1wjCDh/5yrgPLtA/dv6Ux1f/9nAT8UVd X-Received: by 2002:a17:90a:cb84:b0:1ea:ffd2:3075 with SMTP id a4-20020a17090acb8400b001eaffd23075mr5297900pju.106.1655925419941; Wed, 22 Jun 2022 12:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655925419; cv=none; d=google.com; s=arc-20160816; b=llD3TJXt+oQymEaZDMk0UcQZnkz0X2wCFKAuj5rcC4e5T6qeXQjtaXbNXlGwL3bpOu XxMeYP7ZirhBf4nEBE87VJ9HAGd/wfey+eUgisnglwIFQxaLNJaASGwVL5EIz6a5miJr 2ZbsITwnQIsSQF7/vjonPf3kSybcQzb++yT0pDQzooHuMTiEMxjY0o0TwV+NSSarJBcc GH250qTi+vDnaRvB64l/kBHiTJA+wCbyIlR8mSWaHYLMfonyVMj6og2tGax73DSoEIel muR3Fr5OZfosblqEhjIoAYqMYAZa+HDbjL8ZeZ4UaupDol2cJlNmNKsph8Yngjf1CPo4 3E+Q== 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:feedback-id:dkim-signature:dkim-signature; bh=G//CkjAGkuIcoptemdXndQWn8Sa4+wndH+LOM6l7TvA=; b=LnBAuGdWj0200VGDIUb1KFmYCmI0AOVokJbWXRNo1N3AvQYVA+ShZ5clHjknW7v8Fi uYoqarigDFt6lAvtXHq73A4Jd2F0Ew6AsyBhz1IcqIX1A6d4nUbVBlGASKKOe+SraU0c AzBXex4IJdyl+YAFThm6cLAx+ZnI1lKmR6A4tmRt5WpfkztYOnDA4NG1DzYRBx/izbJD tqUDT0qZs2YnOQyuNzQ5A7akElvXuhomqG3rk3Ps6JtSCKgPsopLKZBlblOwD8nloBAa voyfxFjFAPiDD/fvNIUkf4PRdoSMb6Il0JfslFI/Ps8hFg6HKjmXl3HyiGc+0y+mCrlK lLDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm2 header.b=nPEcyOHE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=uuWOx219; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay4-20020a1709028b8400b00161f01e76easi17667642plb.249.2022.06.22.12.16.47; Wed, 22 Jun 2022 12:16: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=@anarazel.de header.s=fm2 header.b=nPEcyOHE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=uuWOx219; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353708AbiFVShy (ORCPT + 99 others); Wed, 22 Jun 2022 14:37:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235461AbiFVShx (ORCPT ); Wed, 22 Jun 2022 14:37:53 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C406285; Wed, 22 Jun 2022 11:37:52 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 983B13200A9A; Wed, 22 Jun 2022 14:37:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 22 Jun 2022 14:37:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1655923070; x= 1656009470; bh=G//CkjAGkuIcoptemdXndQWn8Sa4+wndH+LOM6l7TvA=; b=n PEcyOHEtW0K+ETUp+g66Lc6Z88MJBFha1ofsD1XFG5htaV716jQGQM9EzbfCJPjZ UIB1yXaT3jkg2UFZxFEE3gZVmDyB0oEkt5Ypew+rPh/yCWyZV6IUJ2uv8rhbp9M0 r1IvSUrHV/RvGxwh9Fhk16qTZdjRa1Rap3m/08VQ7h/tuVhmYzas19B/fzXKuJ0B j1K3IVi0yr28zH89jdHmUDuLrevS1zZqw0Sgr1O6kJyy5QmtUGlRm/j4rHuUJxzT cSHgJwtwerKdB/0JySWG3WmAP4uyRlvbYDMZ/sUwM4hrXBI9pYyzwTLG0S8dUQA0 bgs5YDTgv2QCSUoLAmmUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1655923070; x= 1656009470; bh=G//CkjAGkuIcoptemdXndQWn8Sa4+wndH+LOM6l7TvA=; b=u uWOx219fW6zjPxYL2C13oMAgtA+1eYJoFyp8onqHqKU4w8gVOkEYoCPpNf6FUp/N ROCcDFMNLyKmRq5JA7pBdEyZPk3ZuxlTCDpzdyShZYv0LmqEZkJOTIQOqwcoySkw 0PZlneck89KLIL12LviSYPMB+xoViW94xmfjR74IkllzBRnLUg1whkCkLgQ6Wq8L vdFLTML6bfd8IhwpJYDtyyqynxNUouIYISv1h9O5B60LKIrsH8ESOIhUt6FF0Aip Juu8DXuqWsgYBLQcjFskqHv8jRLE2HSfYaTJ7BoEbXGcif9g8OAVL3zXzsb7ecuZ ob1u8pDRI8SJBXIV9/jvw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefhedguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheptehn ughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecugg ftrfgrthhtvghrnhephfeitefgleevtedtffejvedujeekjedugfdtveffjeelvddtfeek gefgjefhgfegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Jun 2022 14:37:49 -0400 (EDT) Date: Wed, 22 Jun 2022 11:37:47 -0700 From: Andres Freund To: Sedat Dilek Cc: Linus Torvalds , Willy Tarreau , Kees Cook , keyrings@vger.kernel.org, Linux Kernel Mailing List , Salvatore Bonaccorso , David Woodhouse , David Howells , Tasmiya Nalatwad , James Bottomley , Stephane Eranian , Arnaldo Carvalho de Melo Subject: Re: [Linux v5.17.9] -Wdeprecated-declarations warnings with LLVM-14 and OpenSSL v3.0.x Message-ID: <20220622183747.mhhlfr6aufbkyhag@alap3.anarazel.de> References: <20220609192308.GB10732@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 Hi, On 2022-06-09 21:31:44 +0200, Sedat Dilek wrote: > On Thu, Jun 9, 2022 at 9:25 PM Linus Torvalds > wrote: > > > > On Thu, Jun 9, 2022 at 12:23 PM Willy Tarreau wrote: > > > > > > IIRC you can also disable the deprecation warnings by defining the > > > OPENSSL_SUPPRESS_DEPRECATED macro. It doesn't require to change the > > > compiler's options and allows us to put our head in the sand. > > > > That one had the downside that you have to know what you're doing to > > make such a change ;) > > > > I just wanted to be able to start doing pulls again after mistakenly > > thinking that an upgrade would be pain-free. > > > > My first approach in making this work.... > > From 3b019a241a72742c7f239965ed92385e9ffd9ed3 Mon Sep 17 00:00:00 2001 > From: Sedat Dilek > Date: Fri, 27 May 2022 09:25:45 +0200 > Subject: [PATCH] extract-cert: Suppress warnings with OpenSSL v3 API > > Signed-off-by: Sedat Dilek > --- > certs/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/certs/Makefile b/certs/Makefile > index d8443cfb1c40..52f71f0925e2 100644 > --- a/certs/Makefile > +++ b/certs/Makefile > @@ -75,4 +75,5 @@ targets += x509_revocation_list > hostprogs := extract-cert > > HOSTCFLAGS_extract-cert.o = $(shell pkg-config --cflags libcrypto 2> /dev/null) > +HOSTCFLAGS_extract-cert.o += -Wno-deprecated-declarations > HOSTLDLIBS_extract-cert = $(shell pkg-config --libs libcrypto 2> > /dev/null || echo -lcrypto) > -- FWIW, these deprecation warnings also cause perf to fail to detect libcrypto: test-libcrypto.c: In function ‘main’: test-libcrypto.c:11:9: error: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 11 | MD5_Init(&context); | ^~~~~~~~ In file included from test-libcrypto.c:3: ... cc1: all warnings being treated as errors Perhaps it's worth applying this fix a bit more broadly? Greetings, Andres Freund