summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/trace.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2019-01-08 15:12:05 +0100
committerZhenyu Wang <zhenyuw@linux.intel.com>2019-01-10 04:29:02 +0100
commitb007065a0aebfba859cecbc23271542b04784567 (patch)
treee29df0ef5a7223213f03288823f5a092f63a90fd /drivers/gpu/drm/i915/gvt/trace.h
parentdrm/i915/gvt: give the cmd parser decode_info a const treatment (diff)
downloadlinux-b007065a0aebfba859cecbc23271542b04784567.tar.xz
linux-b007065a0aebfba859cecbc23271542b04784567.zip
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>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/trace.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/trace.h b/drivers/gpu/drm/i915/gvt/trace.h
index 1fd64202d74e..6d787750d279 100644
--- a/drivers/gpu/drm/i915/gvt/trace.h
+++ b/drivers/gpu/drm/i915/gvt/trace.h
@@ -228,7 +228,7 @@ TRACE_EVENT(oos_sync,
TRACE_EVENT(gvt_command,
TP_PROTO(u8 vgpu_id, u8 ring_id, u32 ip_gma, u32 *cmd_va,
u32 cmd_len, u32 buf_type, u32 buf_addr_type,
- void *workload, char *cmd_name),
+ void *workload, const char *cmd_name),
TP_ARGS(vgpu_id, ring_id, ip_gma, cmd_va, cmd_len, buf_type,
buf_addr_type, workload, cmd_name),