[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <212218590.13874.1621431781547@office.mailbox.org>
Date: Wed, 19 May 2021 15:43:01 +0200 (CEST)
From: torvic9@...lbox.org
To: "linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"almaz.alexandrovich@...agon-software.com"
<almaz.alexandrovich@...agon-software.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"ndesaulniers@...gle.com" <ndesaulniers@...gle.com>
Subject: [PATCH] fs/ntfs3: make ntfs3 compile with clang-12
Some of the ccflags in the fs/ntfs3 Makefile are for gcc only.
Replace them with clang alternatives if necessary.
Signed-off-by: Tor Vic <torvic9@...lbox.org>
---
fs/ntfs3/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletions(-)
diff --git a/fs/ntfs3/Makefile b/fs/ntfs3/Makefile
index b06a06cc0..dae144033 100644
--- a/fs/ntfs3/Makefile
+++ b/fs/ntfs3/Makefile
@@ -4,7 +4,9 @@
#
# to check robot warnings
-ccflags-y += -Wunused-but-set-variable -Wold-style-declaration -Wint-to-pointer-cast
+ccflags-y += -Wint-to-pointer-cast \
+ $(call cc-option,-Wunused-but-set-variable,-Wunused-const-variable) \
+ $(call cc-option,-Wold-style-declaration,-Wout-of-line-declaration)
obj-$(CONFIG_NTFS3_FS) += ntfs3.o
--
2.31.1
Powered by blists - more mailing lists