MIPS: mm: remove duplicate "const" qualifier on insn_table

This change “MIPS: mm: remove duplicate “const” qualifier on insn_table” (commit 00e0629) in Linux kernel is authored by Thomas Petazzoni <thomas.petazzoni [at] free-electrons.com> on Thu Aug 3 21:16:15 2017 +0200.

Description of "MIPS: mm: remove duplicate "const" qualifier on insn_table"

The change “MIPS: mm: remove duplicate “const” qualifier on insn_table” introduces changes as follows.

MIPS: mm: remove duplicate "const" qualifier on insn_table

Fixes the following gcc 7.x build error:

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

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fixes: ce807d5f67ed ("MIPS: Optimize uasm insn lookup.")
Cc: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/16926/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Linux kernel releases containing commit 00e0629

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "MIPS: mm: remove duplicate "const" qualifier on insn_table"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/mips/mm/uasm-mips.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/arch/mips/mm/uasm-mips.c b/arch/mips/mm/uasm-mips.c
index 3f74f6c1f065..9fea6c6bbf49 100644
--- a/arch/mips/mm/uasm-mips.c
+++ b/arch/mips/mm/uasm-mips.c
@@ -48,7 +48,7 @@
 
 #include "uasm.c"
 
-static const struct insn const insn_table[insn_invalid] = {
+static const struct insn insn_table[insn_invalid] = {
 	[insn_addiu]	= {M(addiu_op, 0, 0, 0, 0, 0), RS | RT | SIMM},
 	[insn_addu]	= {M(spec_op, 0, 0, 0, 0, addu_op), RS | RT | RD},
 	[insn_and]	= {M(spec_op, 0, 0, 0, 0, and_op), RS | RT | RD},

The commit for this change in Linux stable tree is 00e0629 (patch).

Last modified: 2020/02/09