OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca17777
)
drm/i915/gvt: Constify cmd_interrupt_events
author
Rikard Falkeborn
<rikard.falkeborn@gmail.com>
Sat, 4 Dec 2021 10:55:24 +0000
(11:55 +0100)
committer
Zhi Wang
<zhi.a.wang@intel.com>
Wed, 12 Jan 2022 07:52:37 +0000
(
02:52
-0500)
It is never modified, so make it const to allow the compiler to put it
in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/20211204105527.15741-7-rikard.falkeborn@gmail.com
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gvt/cmd_parser.c
b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index
c4118b8
..
ce93075
100644
(file)
--- a/
drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/
drivers/gpu/drm/i915/gvt/cmd_parser.c
@@
-1144,7
+1144,7
@@
struct cmd_interrupt_event {
int mi_user_interrupt;
};
-static struct cmd_interrupt_event cmd_interrupt_events[] = {
+static
const
struct cmd_interrupt_event cmd_interrupt_events[] = {
[RCS0] = {
.pipe_control_notify = RCS_PIPE_CONTROL,
.mi_flush_dw = INTEL_GVT_EVENT_RESERVED,