From patchwork Fri Aug 12 18:07:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristen Carlson Accardi X-Patchwork-Id: 12942454 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21F72C00140 for ; Fri, 12 Aug 2022 18:07:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238832AbiHLSHp (ORCPT ); Fri, 12 Aug 2022 14:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233770AbiHLSHo (ORCPT ); Fri, 12 Aug 2022 14:07:44 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE5CB2863; Fri, 12 Aug 2022 11:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660327660; x=1691863660; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oNcyKLO9UI+rsw1981C2DTLKPsPQSX6QWQM+cMyCFe4=; b=GmwjX6ZW3FJ6gVyrAXo4eFu1TB6hR3rgKbGmuvUcjEAOwodqTUDNpywB LZx2qOQAOeA5GEVaL4m/GsyxuPfx+37euNPRXX8d/pXZiVxIqGqnaqxm/ 0fr8CTEAIqtUBwA80xz1UrdJBs+y9D3EWxCxXfuRaG1umYYGhhcypxLWu /x1UuWyqogx4/R2EevDU3KdVTkC1ORUOkAcFfnE+5wgHMtTiTSzysaz3R pKQtxFjgo+h6qHyLTTzIRLI6alZl8FDZU0AOZDVYwZOy4AsYhGI6deVeG d+ZaC2/tihvwaukwHt7gl1lV+IB5EfYj4+OCQToZppb0z2gmcH926Tw7d A==; X-IronPort-AV: E=McAfee;i="6400,9594,10437"; a="292921391" X-IronPort-AV: E=Sophos;i="5.93,233,1654585200"; d="scan'208";a="292921391" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2022 11:07:22 -0700 X-IronPort-AV: E=Sophos;i="5.93,233,1654585200"; d="scan'208";a="582180066" Received: from mmeng-mobl2.amr.corp.intel.com (HELO kcaccard-desk.amr.corp.intel.com) ([10.209.105.65]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2022 11:07:20 -0700 From: Kristen Carlson Accardi To: linux-kernel@vger.kernel.org, Jarkko Sakkinen , Dave Hansen , Shuah Khan Cc: Kristen Carlson Accardi , linux-sgx@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2] selftests/sgx: Ignore OpenSSL 3.0 deprecated functions warning Date: Fri, 12 Aug 2022 11:07:13 -0700 Message-Id: <20220812180714.566257-1-kristen@linux.intel.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org OpenSSL 3.0 deprecates some of the functions used in the SGX selftests, causing build errors on new distros. For now ignore the warnings until support for the functions is no longer available and mark FIXME so that it can be clear this should be removed at some point. Signed-off-by: Kristen Carlson Accardi Reviewed-by: Jarkko Sakkinen --- tools/testing/selftests/sgx/sigstruct.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/selftests/sgx/sigstruct.c index 50c5ab1aa6fa..a07896a46364 100644 --- a/tools/testing/selftests/sgx/sigstruct.c +++ b/tools/testing/selftests/sgx/sigstruct.c @@ -17,6 +17,12 @@ #include "defines.h" #include "main.h" +/* + * FIXME: OpenSSL 3.0 has deprecated some functions. For now just ignore + * the warnings. + */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + struct q1q2_ctx { BN_CTX *bn_ctx; BIGNUM *m;