From: Cong Ding Date: Sun, 9 Dec 2012 08:21:04 +0000 (+0000) Subject: x86: Fix the error of using "const" in gen-insn-attr-x86.awk X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~70^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28a793892296ca3367193c7a7de1714f80049fd0;p=pandora-kernel.git x86: Fix the error of using "const" in gen-insn-attr-x86.awk The original version code causes following sparse warnings: 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. The author Masami Hiramutsu says here is to make both the value pointed by the pointers and the pointers itself read-only, so we move the "const" to be after the "*". Signed-off-by: Cong Ding Link: http://lkml.kernel.org/r/20121209082103.GA9181@gmail.com Acked-by: Masami Hiramatsu Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed