diff options
author | Cong Ding <[email protected]> | 2012-12-09 08:21:04 +0000 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2012-12-10 10:31:24 -0800 |
commit | 28a793892296ca3367193c7a7de1714f80049fd0 (patch) | |
tree | a9b304222f9224d9618949931358bacc16751770 /net/unix/af_unix.c | |
parent | 29c574c0aba8dc0736e19eb9b24aad28cc5c9098 (diff) |
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 <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Acked-by: Masami Hiramatsu <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions