diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-05-11 12:46:19 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-06-08 11:47:57 +0300 |
commit | 5821a0bbb4c39960975d29d6b58ae290088db0ed (patch) | |
tree | 1ec5e4da0cf1eeb56969fccb1f3f497a72efb0b8 | |
parent | 81298056a78c5163b216f17d17c43736e7069961 (diff) | |
download | linux-5821a0bbb4c39960975d29d6b58ae290088db0ed.tar.gz |
drm/i915/uc: remove accidental static from a local variable
The arrays are static const, but the pointer shouldn't be static.
Fixes: 3d832f370d16 ("drm/i915/uc: Allow platforms to have GuC but not HuC")
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220511094619.27889-1-jani.nikula@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c b/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c index 9361532726d6..d2c5c9367cc4 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c @@ -156,7 +156,7 @@ __uc_fw_auto_select(struct drm_i915_private *i915, struct intel_uc_fw *uc_fw) [INTEL_UC_FW_TYPE_GUC] = { blobs_guc, ARRAY_SIZE(blobs_guc) }, [INTEL_UC_FW_TYPE_HUC] = { blobs_huc, ARRAY_SIZE(blobs_huc) }, }; - static const struct uc_fw_platform_requirement *fw_blobs; + const struct uc_fw_platform_requirement *fw_blobs; enum intel_platform p = INTEL_INFO(i915)->platform; u32 fw_count; u8 rev = INTEL_REVID(i915); |