From nobody Sat May 10 05:50:34 2025 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=none dis=none) header.from=linux.alibaba.com ARC-Seal: i=1; a=rsa-sha256; t=1604631379; cv=none; d=zohomail.com; s=zohoarc; b=n3farHA9FR04EL0ltQmCe57xZg/+bS8eMjuaVePk4xnrOwhcEi8Kmfcsg8IoMVbY3LrOOH0gyCB4USVToAgQjLtEEP+/+buvDYoWsOKXjUQjDAvjB3WYcpUtfdEPJZbeto+cXS/H5S/rzMFnMIGfKUMG08fkB5OSIqxCrCqlnFc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604631379; h=Cc:Date:From:List-Id:Message-ID:Subject:To; bh=tb8YXHW91UQDca6UcKS5VgPrYF8nioslbA68ILVf8A4=; b=K3W234UN8ez88TdXJ5B0YfHTEE/XNzXBOYOHjoAZhi+kjFCmuLrFkxZg9wEBLW1jCMN1UA4uZtVPuJcdZfdVUqBjizTtk1DC2X4BpKACTwal/xmQKxAcmh7e9RVd6UHFhT4QRCs2lSt3S5w3QnoJPnsPkh/6HXDk6B7KGpPNK1M= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1604631379287428.65830214013124; Thu, 5 Nov 2020 18:56:19 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725924AbgKFC4S (ORCPT ); Thu, 5 Nov 2020 21:56:18 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:60911 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgKFC4R (ORCPT ); Thu, 5 Nov 2020 21:56:17 -0500 Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UENt9Vb_1604631373) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Nov 2020 10:56:14 +0800 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R371e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UENt9Vb_1604631373; From: Alex Shi Cc: Nick Terrell , Kees Cook , Ingo Molnar , linux-kernel@vger.kernel.org Subject: [PATCH] lib/zstd: remove unused macro tame compiler Date: Fri, 6 Nov 2020 10:56:08 +0800 Message-Id: <1604631368-77927-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" There are some of unused macros cause compiler warning, let's remove them. lib/zstd/fse_compress.c:82:0: warning: macro "FSE_FUNCTION_NAME" is not use= d [-Wunused-macros] lib/zstd/fse_decompress.c:90:0: warning: macro "FSE_FUNCTION_NAME" is not u= sed [-Wunused-macros] lib/zstd/fse_compress.c:82:0: warning: macro "FSE_FUNCTION_NAME" is not use= d [-Wunused-macros] lib/zstd/fse_decompress.c:90:0: warning: macro "FSE_FUNCTION_NAME" is not u= sed [-Wunused-macros] lib/zstd/fse_compress.c:83:0: warning: macro "FSE_TYPE_NAME" is not used [-= Wunused-macros] lib/zstd/fse_decompress.c:91:0: warning: macro "FSE_TYPE_NAME" is not used = [-Wunused-macros] lib/zstd/fse_compress.c:83:0: warning: macro "FSE_TYPE_NAME" is not used [-= Wunused-macros] lib/zstd/fse_decompress.c:91:0: warning: macro "FSE_TYPE_NAME" is not used = [-Wunused-macros] lib/zstd/fse_compress.c:81:0: warning: macro "FSE_CAT" is not used [-Wunuse= d-macros] lib/zstd/fse_decompress.c:89:0: warning: macro "FSE_CAT" is not used [-Wunu= sed-macros] lib/zstd/fse_compress.c:81:0: warning: macro "FSE_CAT" is not used [-Wunuse= d-macros] lib/zstd/fse_decompress.c:89:0: warning: macro "FSE_CAT" is not used [-Wunu= sed-macros] Signed-off-by: Alex Shi Cc: Nick Terrell =20 Cc: Kees Cook =20 Cc: Ingo Molnar =20 Cc: linux-kernel@vger.kernel.org=20 --- lib/zstd/fse_compress.c | 5 ----- lib/zstd/fse_decompress.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/lib/zstd/fse_compress.c b/lib/zstd/fse_compress.c index ef3d1741d532..20367cd2eaa0 100644 --- a/lib/zstd/fse_compress.c +++ b/lib/zstd/fse_compress.c @@ -77,11 +77,6 @@ #error "FSE_FUNCTION_TYPE must be defined" #endif =20 -/* Function names */ -#define FSE_CAT(X, Y) X##Y -#define FSE_FUNCTION_NAME(X, Y) FSE_CAT(X, Y) -#define FSE_TYPE_NAME(X, Y) FSE_CAT(X, Y) - /* Function templates */ =20 /* FSE_buildCTable_wksp() : diff --git a/lib/zstd/fse_decompress.c b/lib/zstd/fse_decompress.c index 0b353530fb3f..86fff64db563 100644 --- a/lib/zstd/fse_decompress.c +++ b/lib/zstd/fse_decompress.c @@ -78,11 +78,6 @@ #error "FSE_FUNCTION_TYPE must be defined" #endif =20 -/* Function names */ -#define FSE_CAT(X, Y) X##Y -#define FSE_FUNCTION_NAME(X, Y) FSE_CAT(X, Y) -#define FSE_TYPE_NAME(X, Y) FSE_CAT(X, Y) - /* Function templates */ =20 size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter= , unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t works= paceSize) --=20 1.8.3.1