Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965736AbbBCNiL (ORCPT ); Tue, 3 Feb 2015 08:38:11 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:7068 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965593AbbBCNiG (ORCPT ); Tue, 3 Feb 2015 08:38:06 -0500 From: Daniel Sanders CC: Toma Tabacu , Daniel Sanders , Ralf Baechle , Paul Burton , Paul Bolle , "Steven J. Hill" , Manuel Lauss , Jim Quinlan , , Subject: [PATCH 5/5] MIPS: LLVMLinux: Silence unicode warnings when preprocessing assembly. Date: Tue, 3 Feb 2015 13:37:19 +0000 Message-ID: <1422970639-7922-6-git-send-email-daniel.sanders@imgtec.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422970639-7922-1-git-send-email-daniel.sanders@imgtec.com> References: <1422970639-7922-1-git-send-email-daniel.sanders@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.14.104] To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1921 Lines: 54 From: Toma Tabacu 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 Signed-off-by: Daniel Sanders Cc: Ralf Baechle Cc: Paul Burton Cc: Paul Bolle Cc: "Steven J. Hill" Cc: Manuel Lauss Cc: Jim Quinlan Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/