Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2392789lqp; Sun, 24 Mar 2024 17:28:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUad0/HcI/vUL5jdEZ/BC/WJQIYzwdnmn18ehYIf8jUuos0Yr2kYD3Em5U0HRe70QMDliZUjGbgOw0ULEAXjYyoWrT438QE/lCprAvRuQ== X-Google-Smtp-Source: AGHT+IFj3VHOP21oD4pzHJ178ShjL8uPednuKCAahJaAcd1oQvughJ8y9VkoPWtZauLFcgxe7ylq X-Received: by 2002:a2e:7e02:0:b0:2d3:8c1f:c0ff with SMTP id z2-20020a2e7e02000000b002d38c1fc0ffmr3839458ljc.16.1711326483099; Sun, 24 Mar 2024 17:28:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326483; cv=pass; d=google.com; s=arc-20160816; b=WR2HJTlNWlJlN0qLlYOckGTJeVufsUvODVOg/x3ou0QnzL/x3mssr9BBR4ZgaX+bi/ LiQvbE9aVtkjOIifKUIYwZ89Oky05yVpAZdHGtRbKxGdTvM/XRCyIgHXERXCS00zooCl Pp2+ToS4KMESfnhMeQXTsl7+ptkL7yrTCrbEmlfo/RAge+r5cYjt9fzzk8sr5d5i6UNR m8MvbC5wiI+9SVNnmaR0gXPbwLPXYDI+wQBTIDAs3PUEp/hlBRi5jiloFLJEJ1rOUFig hGu4OeD6bKmeC2AMtiCUNvp1mAip334FW+ykEfQBD3L+fcTHMw8Bv3FXWQXOkK2Q2vxx vowA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dgk5QXck+uSTeC97gOfQUjjjkkWx52udYeXBVw5MoSQ=; fh=fd39tcrvp7hxb/eBBDrJv4g2sjXJvK9+7fidlxvZgTo=; b=SHonf17dJa9Qyr9vnhBCjFM1lz8CYWJsYW20zzkstmoG8BDBycdyQbP4CSZgaJRPLd CEsTsIIU4WzVWGLf7b3qA+l3EiyMPPi9EmDOJ2JRqlkpL5fhc0kLdQZk5Sk642mEUH/V r3MfFY11JQU7tVqdYPRPSf7fhLo93ySmnX3FlmKeuefi3Ie7hg3w7hO9afi6cU+ecV6i yMvoJ4rGkS/kymr4cByOwrmC9ANreeL327CtCj8FUNAnkbaPK1Cm6fT3QKm7HOuZvsIK GZPVPCBR9W9JQSh71nj2R3EMFBx9zfYDRzRjA8ytOVQ1a0crjJZyQKXfFDdOHjB8IwHM Ys1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MbudAzXm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t24-20020a170906065800b00a4751901ed4si991235ejb.118.2024.03.24.17.28.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:28:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MbudAzXm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1CEF91F2463C for ; Mon, 25 Mar 2024 00:17:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E145D19BBA1; Sun, 24 Mar 2024 22:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MbudAzXm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0071C6E61D; Sun, 24 Mar 2024 22:42:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320160; cv=none; b=GTSjLGD7W196pKxR4m+czeSft/BUie+f0S+KPJ947yKSfLK19Dyc0R775HOQaM7doc9pVvhr7DQwapZg+Zh64OTx0XawqiyGAjljI01kaRjKDKZ8gog2u0yG/T1cf5r3JcCIChXY6plhuLO8AtIPXExItHt0OyY29b5PBUc4aUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320160; c=relaxed/simple; bh=eFw53uz7Utyd3JbrNXm2U9OSaLEXN0g6S7t/oGiM3VE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SarF7JdzbtAv/LMSYzaV9bAlifbLccLysh/dDxO3EFV7sRoZ1dRxwr+KyFBsKb657mtNQ7DrnnraIhUJXaWoW06RSiYtkcl3G3XGfsxTpGY+FyQ2vVhhp/WtI/CiEgCqJtyWQITYnIlxEh1q9oxGD4ivpNHS+MIsX5hirMJDoaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MbudAzXm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B25B8C433C7; Sun, 24 Mar 2024 22:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320159; bh=eFw53uz7Utyd3JbrNXm2U9OSaLEXN0g6S7t/oGiM3VE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MbudAzXmkjxgCCKoaXX5axt8yhClGvWjmBoq/97zYOxiJfpYJYdi+PgTkXaJ7A5xB pi02nlTc9y32LCI99Z9qpa6hzrfZrYOKlk6ZrOZm87Z8O1ZVfyyV2B+yHYk4aeVbHL Ha46utFifI7sZ08onX2gM9gZk+YnU5NkzsunRR8JxLpSID0rhrqkrlaaVyORmrVC6Z MyMyEwCPqeuj7GR6zw6MgJtiiAStXdtAX62Z9fL/DEU011ULhUVJrJzYBMecTpZOvo H++MtBGqrbtPBa2ldNjM6fjK1Nh2fgxMfK4SiGgJ9zIkv5T65L0cMXgSo3ltkODuuI 1/qEECjucat2w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Adam Guerin , Giovanni Cabiddu , Herbert Xu , Sasha Levin Subject: [PATCH 6.8 467/715] crypto: qat - remove unused macros in qat_comp_alg.c Date: Sun, 24 Mar 2024 18:30:46 -0400 Message-ID: <20240324223455.1342824-468-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Adam Guerin [ Upstream commit dfff0e35fa5dd84ae75052ba129b0219d83e46dc ] As a result of the removal of qat_zlib_deflate, some defines where not removed. Remove them. This is to fix the following warning when compiling the QAT driver using the clang compiler with CC=clang W=2: drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:21:9: warning: macro is not used [-Wunused-macros] 21 | #define QAT_RFC_1950_CM_OFFSET 4 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:16:9: warning: macro is not used [-Wunused-macros] 16 | #define QAT_RFC_1950_HDR_SIZE 2 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:17:9: warning: macro is not used [-Wunused-macros] 17 | #define QAT_RFC_1950_FOOTER_SIZE 4 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:22:9: warning: macro is not used [-Wunused-macros] 22 | #define QAT_RFC_1950_DICT_MASK 0x20 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:18:9: warning: macro is not used [-Wunused-macros] 18 | #define QAT_RFC_1950_CM_DEFLATE 8 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:20:9: warning: macro is not used [-Wunused-macros] 20 | #define QAT_RFC_1950_CM_MASK 0x0f | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:23:9: warning: macro is not used [-Wunused-macros] 23 | #define QAT_RFC_1950_COMP_HDR 0x785e | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:19:9: warning: macro is not used [-Wunused-macros] 19 | #define QAT_RFC_1950_CM_DEFLATE_CINFO_32K 7 | ^ Fixes: e9dd20e0e5f6 ("crypto: qat - Remove zlib-deflate") Signed-off-by: Adam Guerin Reviewed-by: Giovanni Cabiddu Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/intel/qat/qat_common/qat_comp_algs.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/crypto/intel/qat/qat_common/qat_comp_algs.c b/drivers/crypto/intel/qat/qat_common/qat_comp_algs.c index bf8c0ee629175..2ba4aa22e0927 100644 --- a/drivers/crypto/intel/qat/qat_common/qat_comp_algs.c +++ b/drivers/crypto/intel/qat/qat_common/qat_comp_algs.c @@ -13,15 +13,6 @@ #include "qat_compression.h" #include "qat_algs_send.h" -#define QAT_RFC_1950_HDR_SIZE 2 -#define QAT_RFC_1950_FOOTER_SIZE 4 -#define QAT_RFC_1950_CM_DEFLATE 8 -#define QAT_RFC_1950_CM_DEFLATE_CINFO_32K 7 -#define QAT_RFC_1950_CM_MASK 0x0f -#define QAT_RFC_1950_CM_OFFSET 4 -#define QAT_RFC_1950_DICT_MASK 0x20 -#define QAT_RFC_1950_COMP_HDR 0x785e - static DEFINE_MUTEX(algs_lock); static unsigned int active_devs; -- 2.43.0