linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Shi <alex.shi@linux.alibaba.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Nick Terrell <terrelln@fb.com>, Kees Cook <keescook@chromium.org>,
	Ingo Molnar <mingo@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH] lib/zstd: remove unused macro tame compiler
Date: Fri,  6 Nov 2020 10:56:08 +0800	[thread overview]
Message-ID: <1604631368-77927-1-git-send-email-alex.shi@linux.alibaba.com> (raw)

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 used [-Wunused-macros]
lib/zstd/fse_decompress.c:90:0: warning: macro "FSE_FUNCTION_NAME" is not used [-Wunused-macros]
lib/zstd/fse_compress.c:82:0: warning: macro "FSE_FUNCTION_NAME" is not used [-Wunused-macros]
lib/zstd/fse_decompress.c:90:0: warning: macro "FSE_FUNCTION_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: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 [-Wunused-macros]
lib/zstd/fse_decompress.c:89:0: warning: macro "FSE_CAT" is not used [-Wunused-macros]
lib/zstd/fse_compress.c:81:0: warning: macro "FSE_CAT" is not used [-Wunused-macros]
lib/zstd/fse_decompress.c:89:0: warning: macro "FSE_CAT" is not used [-Wunused-macros]

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Nick Terrell <terrelln@fb.com> 
Cc: Kees Cook <keescook@chromium.org> 
Cc: Ingo Molnar <mingo@kernel.org> 
Cc: linux-kernel@vger.kernel.org 
---
 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
 
-/* 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 */
 
 /* 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
 
-/* 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 */
 
 size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize)
-- 
1.8.3.1


                 reply	other threads:[~2020-11-06  2:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1604631368-77927-1-git-send-email-alex.shi@linux.alibaba.com \
    --to=alex.shi@linux.alibaba.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=terrelln@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).