Skip to content

Commit 49d0bcb

Browse files
Lucas De Marchibardliao
authored andcommitted
drm/xe/uc: Remove static from loop variable
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>
1 parent 54d2405 commit 49d0bcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_uc_fw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ uc_fw_auto_select(struct xe_device *xe, struct xe_uc_fw *uc_fw)
222222
[XE_UC_FW_TYPE_HUC] = { entries_huc, ARRAY_SIZE(entries_huc) },
223223
[XE_UC_FW_TYPE_GSC] = { entries_gsc, ARRAY_SIZE(entries_gsc) },
224224
};
225-
static const struct uc_fw_entry *entries;
226225
enum xe_platform p = xe->info.platform;
226+
const struct uc_fw_entry *entries;
227227
u32 count;
228228
int i;
229229

0 commit comments

Comments
 (0)