Skip to contentSkip to conversation

MIPS: mm: Fix duplicate "const" on insn_table_MM

PATCH New [email protected] 1 participant 1 message Dec 7, 2017 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: mm: Fix duplicate "const" on insn_table_MM

From: James Hogan <[email protected]>

Fix the following gcc 7.x build error on microMIPS builds:

arch/mips/mm/uasm-micromips.c:43:26: error: duplicate ‘const’ declaration specifier [-Werror=duplicate-decl-specifier]
static const struct insn const insn_table_MM[insn_invalid] = {

                          ^~~~~

The same issue has already been fixed in uasm-mips by commit 00e06297b351 ("MIPS: mm: remove duplicate "const" qualifier on insn_table").

Fixes ce807d5f67ed ("MIPS: Optimize uasm insn lookup.")
Cc Ralf Baechle <[email protected]>
Cc David Daney <[email protected]>
---
 arch/mips/mm/uasm-micromips.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/mm/uasm-micromips.c +1 -1
index cdb5a191b9d5..9bb6baa45da3 100644
@@ -40,7 +40,7 @@
 
 #include "uasm.c"
 
-static const struct insn const insn_table_MM[insn_invalid] = {
+static const struct insn insn_table_MM[insn_invalid] = {
 	[insn_addu]	= {M(mm_pool32a_op, 0, 0, 0, 0, mm_addu32_op), RT | RS | RD},
 	[insn_addiu]	= {M(mm_addiu32_op, 0, 0, 0, 0, 0), RT | RS | SIMM},
 	[insn_and]	= {M(mm_pool32a_op, 0, 0, 0, 0, mm_and_op), RT | RS | RD},
Signature · 1 line
2.13.6