To: | Ralf Baechle <ralf@linux-mips.org> |
---|---|
Subject: | [PATCH] MIPS: mm: Fix duplicate "const" on insn_table_MM |
From: | jhogan@kernel.org |
Date: | Thu, 7 Dec 2017 07:14:17 +0000 |
Authentication-results: | mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org |
Authentication-results: | mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org |
Cc: | James Hogan <jhogan@kernel.org>, David Daney <david.daney@cavium.com>, linux-mips@linux-mips.org |
Dmarc-filter: | OpenDMARC Filter v1.3.2 mail.kernel.org 2611C21882 |
List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
List-owner: | <mailto:ralf@linux-mips.org> |
List-post: | <mailto:linux-mips@linux-mips.org> |
List-software: | Ecartis version 1.0.0 |
List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
Original-recipient: | rfc822;linux-mips@linux-mips.org |
Sender: | linux-mips-bounce@linux-mips.org |
From: James Hogan <jhogan@kernel.org> 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"). Signed-off-by: James Hogan <jhogan@kernel.org> Fixes: ce807d5f67ed ("MIPS: Optimize uasm insn lookup.") Cc: Ralf Baechle <ralf@linux-mips.org> Cc: David Daney <david.daney@cavium.com> Cc: linux-mips@linux-mips.org --- arch/mips/mm/uasm-micromips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mm/uasm-micromips.c b/arch/mips/mm/uasm-micromips.c index cdb5a191b9d5..9bb6baa45da3 100644 --- a/arch/mips/mm/uasm-micromips.c +++ b/arch/mips/mm/uasm-micromips.c @@ -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}, -- 2.13.6 |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [PATCH 0/1] About MIPS/Loongson maintainance, Greg Kroah-Hartman |
---|---|
Next by Date: | [PATCH] MIPS: Implement __multi3 for GCC7 MIPS64r6 builds, James Hogan |
Previous by Thread: | [PATCH 0/1] About MIPS/Loongson maintainance, Huacai Chen |
Next by Thread: | Re: [PATCH v4 6/8] staging: octeon: Remove USE_ASYNC_IOBDMA macro., Greg Kroah-Hartman |
Indexes: | [Date] [Thread] [Top] [All Lists] |