Skip to content

Commit

Permalink
MIPS: mm: Fix duplicate "const" on insn_table_MM
Browse files Browse the repository at this point in the history
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
00e0629 ("MIPS: mm: remove duplicate "const" qualifier on
insn_table").

Signed-off-by: James Hogan <[email protected]>
Fixes: ce807d5 ("MIPS: Optimize uasm insn lookup.")
Cc: David Daney <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/17889/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
amalon authored and ralfbaechle committed Jan 10, 2018
1 parent c04de7b commit ccf85c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mm/uasm-micromips.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit ccf85c7

Please sign in to comment.