]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: give the cmd parser cmd_info a const treatment
authorJani Nikula <jani.nikula@intel.com>
Tue, 8 Jan 2019 14:12:05 +0000 (16:12 +0200)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Jan 2019 03:29:02 +0000 (11:29 +0800)
commit0fbb275a87ab5f40a7941981c33e1424f557c6e6
treee29df0ef5a7223213f03288823f5a092f63a90fd
parentfc347b4893e6542654f02f4a2420eeeb95f968fe
drm/i915/gvt: give the cmd parser cmd_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:

0000000000000080 l     O .rodata 0000000000001c00 cmd_info

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
drivers/gpu/drm/i915/gvt/trace.h