Skip to content

Commit 81d0223

Browse files
bjdooks-ctjnikula
authored andcommitted
drm/i915/guc: make 'guc_hw_reg_state' static as it isn't exported
The guc_hw_reg_state array is not exported, so make it static. Fixes the following sparse warning: drivers/gpu/drm/i915/i915_gpu_error.c:692:3: warning: symbol 'guc_hw_reg_state' was not declared. Should it be static? Fixes: ba391a1 ("drm/i915/guc: Include the GuC registers in the error state") Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20260108201202.59250-2-rodrigo.vivi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (cherry picked from commit 701c474) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 0f61b18 commit 81d0223

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/i915_gpu_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ static void err_print_guc_ctb(struct drm_i915_error_state_buf *m,
686686
}
687687

688688
/* This list includes registers that are useful in debugging GuC hangs. */
689-
const struct {
689+
static const struct {
690690
u32 start;
691691
u32 count;
692692
} guc_hw_reg_state[] = {

0 commit comments

Comments
 (0)