[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1422970639-7922-6-git-send-email-daniel.sanders@imgtec.com>
Date: Tue, 3 Feb 2015 13:37:19 +0000
From: Daniel Sanders <daniel.sanders@...tec.com>
To: unlisted-recipients:; (no To-header on input)
CC: Toma Tabacu <toma.tabacu@...tec.com>,
Daniel Sanders <daniel.sanders@...tec.com>,
Ralf Baechle <ralf@...ux-mips.org>,
Paul Burton <paul.burton@...tec.com>,
Paul Bolle <pebolle@...cali.nl>,
"Steven J. Hill" <Steven.Hill@...tec.com>,
Manuel Lauss <manuel.lauss@...il.com>,
Jim Quinlan <jim2101024@...il.com>,
<linux-mips@...ux-mips.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH 5/5] MIPS: LLVMLinux: Silence unicode warnings when preprocessing assembly.
From: Toma Tabacu <toma.tabacu@...tec.com>
Differentiate the 'u' GAS .macro argument from the '\u' C preprocessor unicode
escape sequence by renaming it to '_u'.
When the 'u' argument is evaluated, we end up writing '\u', which causes
clang to emit -Wunicode warnings.
This silences a couple of -Wunicode warnings reported by clang.
The changed code can be preprocessed without warnings by both gcc and clang.
Signed-off-by: Toma Tabacu <toma.tabacu@...tec.com>
Signed-off-by: Daniel Sanders <daniel.sanders@...tec.com>
Cc: Ralf Baechle <ralf@...ux-mips.org>
Cc: Paul Burton <paul.burton@...tec.com>
Cc: Paul Bolle <pebolle@...cali.nl>
Cc: "Steven J. Hill" <Steven.Hill@...tec.com>
Cc: Manuel Lauss <manuel.lauss@...il.com>
Cc: Jim Quinlan <jim2101024@...il.com>
Cc: linux-mips@...ux-mips.org
Cc: linux-kernel@...r.kernel.org
---
arch/mips/include/asm/asmmacro.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/mips/include/asm/asmmacro.h b/arch/mips/include/asm/asmmacro.h
index 6caf876..c657932 100644
--- a/arch/mips/include/asm/asmmacro.h
+++ b/arch/mips/include/asm/asmmacro.h
@@ -200,12 +200,12 @@
.word 0x41600021 | (\reg << 16)
.endm
- .macro MFTR rt=0, rd=0, u=0, sel=0
- .word 0x41000000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)
+ .macro MFTR rt=0, rd=0, _u=0, sel=0
+ .word 0x41000000 | (\rt << 16) | (\rd << 11) | (\_u << 5) | (\sel)
.endm
- .macro MTTR rt=0, rd=0, u=0, sel=0
- .word 0x41800000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)
+ .macro MTTR rt=0, rd=0, _u=0, sel=0
+ .word 0x41800000 | (\rt << 16) | (\rd << 11) | (\_u << 5) | (\sel)
.endm
#ifdef TOOLCHAIN_SUPPORTS_MSA
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists