fs/ntfs3: make ntfs3 compile with clang-12
Subsystems (2)
PATCH 1/1 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.
--- fs/ntfs3/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletions(-)
fs/ntfs3/Makefile +3 -1
@@ -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
Signature · 1 line
2.31.1
Quoted 5 lines · On Wed, May 19, 2021 at 6:43 AM <[email protected]> wrote:
Some of the ccflags in the fs/ntfs3
Makefileare for gcc only. Replace them with clang alternatives if necessary.Signed-off-by Tor Vic <[email protected]>
Thanks for the patch. +clang-built-linux; please make sure to cc the lists from ./scripts/get_maintainer.pl <patch file>. It should recommend our mailing list of the words clang or llvm appear anywhere in the patch file. This helps spread around the review burden.
Quoted 9 lines
--- fs/ntfs3/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletions(-)fs/ntfs3/Makefile +0
-0
fs/ntfs3/Makefile line 9
Quoted 7 lines
fs/ntfs3/Makefile +3
-1@@ -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)
I think it would be better to leave off the second parameter of both of these, which is the fallback.
Quoted 5 lines
fs/ntfs3/Makefile +0
-1obj-$(CONFIG_NTFS3_FS) += ntfs3.o --2.31.1
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 9 lines
Nick Desaulniers <[email protected]> hat am 20.05.2021 01:06 geschrieben:
Quoted 4 lines · On Wed, May 19, 2021 at 6:43 AM <[email protected]> wrote:
Some of the ccflags in the fs/ntfs3
Makefileare for gcc only. Replace them with clang alternatives if necessary.
Quoted 7 lines
Quoted 1 line
Signed-off-by Tor Vic <[email protected]>Thanks for the patch. +clang-built-linux; please make sure to cc the lists from
./scripts/get_maintainer.pl<patch file>. It should recommend our mailing list of the words clang or llvm appear anywhere in the patch file. This helps spread around the review burden.
Cool, I didn't know about that script, thanks!
Quoted 11 lines
Quoted 11 lines
--- fs/ntfs3/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletions(-)fs/ntfs3/Makefile +0
-0@@ -4,7 +4,9 @@ #
Quoted 8 lines
fs/ntfs3/Makefile line 9
Quoted 5 lines
fs/ntfs3/Makefile +3
-1# 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)I think it would be better to leave off the second parameter of both of these, which is the fallback.
OK, I will do that.
Thanks for your feedback!
Quoted 10 lines
Quoted 6 lines
fs/ntfs3/Makefile +0
-1obj-$(CONFIG_NTFS3_FS) += ntfs3.o --2.31.1
Signature · 2 lines
Thanks, ~Nick Desaulniers