lkml.org 
[lkml]   [2012]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch/x86/tools/gen-insn-attr-x86.awk: remove duplicate const
On Fri, Dec 07, 2012 at 02:45:43PM -0800, H. Peter Anvin wrote:
> Patch description please?
there are 2 consts in the definition of one variable

- cong
>
> Cong Ding <dinggnu@gmail.com> wrote:
>
> >
> >Signed-off-by: Cong Ding <dinggnu@gmail.com>
> >---
> > arch/x86/tools/gen-insn-attr-x86.awk | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> >
> >diff --git a/arch/x86/tools/gen-insn-attr-x86.awk
> >b/arch/x86/tools/gen-insn-attr-x86.awk
> >index ddcf39b..d1d9cfa 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++)
>
> --
> Sent from my mobile phone. Please excuse brevity and lack of formatting.


\
 
 \ /
  Last update: 2012-12-08 00:01    [W:0.045 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site