]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/uc: Remove static from loop variable
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 7 Mar 2025 18:13:21 +0000 (10:13 -0800)
committerLucas 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

index fb0eda3d568290420e6a0af5777d263b342e1db6..b553079ae3d647ef15dd04f6c3dad30760e183e6 100644 (file)
@@ -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;