From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964791Ab2LHAEx (ORCPT ); Fri, 7 Dec 2012 19:04:53 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43352 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755549Ab2LHAEw (ORCPT ); Fri, 7 Dec 2012 19:04:52 -0500 Date: Fri, 7 Dec 2012 16:04:37 -0800 From: tip-bot for Cong Ding Message-ID: Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, dinggnu@gmail.com, tglx@linutronix.de, hpa@linux.intel.com Reply-To: mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, dinggnu@gmail.com, tglx@linutronix.de, hpa@linux.intel.com In-Reply-To: <20121207231729.GC6179@gmail.com> References: <20121207231729.GC6179@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cleanups] x86: Remove duplicate "const" in gen-insn-attr-x86.awk Git-Commit-ID: 8d7474a0ddc619f4c9ebfc19264e3ef0906a7e6a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (terminus.zytor.com [127.0.0.1]); Fri, 07 Dec 2012 16:04:43 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8d7474a0ddc619f4c9ebfc19264e3ef0906a7e6a Gitweb: http://git.kernel.org/tip/8d7474a0ddc619f4c9ebfc19264e3ef0906a7e6a Author: Cong Ding AuthorDate: Fri, 7 Dec 2012 23:14:32 +0000 Committer: H. Peter Anvin CommitDate: Fri, 7 Dec 2012 15:31:49 -0800 x86: Remove duplicate "const" in gen-insn-attr-x86.awk Fix the following sparse warnings due to duplicate "const" keywords: arch/x86/lib/inat-tables.c:1080:25: warning: duplicate const arch/x86/lib/inat-tables.c:1095:25: warning: duplicate const arch/x86/lib/inat-tables.c:1118:25: warning: duplicate const for the variables inat_escape_tables, inat_group_tables, and inat_avx_tables in the code generated by gen-insn-attr-x86.awk. Signed-off-by: Cong Ding Link: http://lkml.kernel.org/r/20121207231729.GC6179@gmail.com Signed-off-by: H. Peter Anvin --- arch/x86/tools/gen-insn-attr-x86.awk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/tools/gen-insn-attr-x86.awk b/arch/x86/tools/gen-insn-attr-x86.awk index ddcf39b..987c7b2 100644 --- a/arch/x86/tools/gen-insn-attr-x86.awk +++ b/arch/x86/tools/gen-insn-attr-x86.awk @@ -356,7 +356,7 @@ END { exit 1 # print escape opcode map's array print "/* Escape opcode map array */" - print "const insn_attr_t const *inat_escape_tables[INAT_ESC_MAX + 1]" \ + print "const insn_attr_t *inat_escape_tables[INAT_ESC_MAX + 1]" \ "[INAT_LSTPFX_MAX + 1] = {" for (i = 0; i < geid; i++) for (j = 0; j < max_lprefix; j++) @@ -365,7 +365,7 @@ END { print "};\n" # print group opcode map's array print "/* Group opcode map array */" - print "const insn_attr_t const *inat_group_tables[INAT_GRP_MAX + 1]"\ + print "const insn_attr_t *inat_group_tables[INAT_GRP_MAX + 1]"\ "[INAT_LSTPFX_MAX + 1] = {" for (i = 0; i < ggid; i++) for (j = 0; j < max_lprefix; j++) @@ -374,7 +374,7 @@ END { print "};\n" # print AVX opcode map's array print "/* AVX opcode map array */" - print "const insn_attr_t const *inat_avx_tables[X86_VEX_M_MAX + 1]"\ + print "const insn_attr_t *inat_avx_tables[X86_VEX_M_MAX + 1]"\ "[INAT_LSTPFX_MAX + 1] = {" for (i = 0; i < gaid; i++) for (j = 0; j < max_lprefix; j++)