drm/i915/gvt: give the cmd parser decode_info a const treatment
authorJani Nikula <jani.nikula@intel.com>
Tue, 8 Jan 2019 14:12:04 +0000 (16:12 +0200)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Jan 2019 03:28:21 +0000 (11:28 +0800)
commited8cce30163f7b39cbca9c214a17789e7d516ff3
tree408c8f60a48897cfb320a3656237603adbb5b321
parentba64bd96393414f29f0124ca8d6ca8b4b83d4902
drm/i915/gvt: give the cmd parser decode_info a const treatment

It doesn't need to be changed, make it const. The string literals should
anyway be referred to as const data.

The following gets moved to rodata section:

0000000000000410 l     O .rodata 0000000000000018 decode_info_mi
0000000000000390 l     O .rodata 0000000000000018 decode_info_3d_media
00000000000003e0 l     O .rodata 0000000000000018 decode_info_2d
0000000000000330 l     O .rodata 0000000000000018 decode_info_mfx_vc
00000000000002e0 l     O .rodata 0000000000000018 decode_info_vebox
0000000000000300 l     O .rodata 0000000000000028 sub_op_vebox
0000000000000360 l     O .rodata 0000000000000028 sub_op_mfx_vc
00000000000003c0 l     O .rodata 0000000000000020 sub_op_3d_media
0000000000000400 l     O .rodata 0000000000000010 sub_op_2d
0000000000000430 l     O .rodata 0000000000000010 sub_op_mi

Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c