projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e08e9
)
drm/xe/uc: Remove static from loop variable
author
Lucas De Marchi
<lucas.demarchi@intel.com>
Fri, 7 Mar 2025 18:13:21 +0000
(10:13 -0800)
committer
Lucas De Marchi
<lucas.demarchi@intel.com>
Fri, 21 Mar 2025 17:29:08 +0000
(10:29 -0700)
The `entries` variable is used to loop through the array - it's supposed
to be const, but not static.
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20250307-xe-per-gt-fw-v1-1-459574d76400@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_uc_fw.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_uc_fw.c
b/drivers/gpu/drm/xe/xe_uc_fw.c
index
fb0eda3
..
b553079
100644
(file)
--- a/
drivers/gpu/drm/xe/xe_uc_fw.c
+++ b/
drivers/gpu/drm/xe/xe_uc_fw.c
@@
-222,8
+222,8
@@
uc_fw_auto_select(struct xe_device *xe, struct xe_uc_fw *uc_fw)
[XE_UC_FW_TYPE_HUC] = { entries_huc, ARRAY_SIZE(entries_huc) },
[XE_UC_FW_TYPE_GSC] = { entries_gsc, ARRAY_SIZE(entries_gsc) },
};
- static const struct uc_fw_entry *entries;
enum xe_platform p = xe->info.platform;
+ const struct uc_fw_entry *entries;
u32 count;
int i;