Skip to contentSkip to conversation

drm/i915/guc: make 'guc_hw_reg_state' static as it isn't exported

PATCH New Ben Dooks 2 participants 2 messages Jan 8

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 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 ba391a102ec11 ("drm/i915/guc: Include the GuC registers in the error state")
---
 drivers/gpu/drm/i915/i915_gpu_error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_gpu_error.c +1 -1
index 7582ef34bf3f..303d8d9b7775 100644
@@ -686,7 +686,7 @@ static void err_print_guc_ctb(struct drm_i915_error_state_buf *m,
 }
 
 /* This list includes registers that are useful in debugging GuC hangs. */
-const struct {
+static const struct {
 	u32 start;
 	u32 count;
 } guc_hw_reg_state[] = {
Signature · 1 line
2.37.2.352.g3c44437643
#1 lore raw

✗ LGCI.VerificationFailed: failure for drm/i915/guc: make 'guc_hw_reg_state' static as it isn't exported

== Series Details ==

== Series Details ==

Series: drm/i915/guc: make 'guc_hw_reg_state' static as it isn't exported
URL : https://patchwork.freedesktop.org/series/159812/
State : failure

== Summary ==

Address '[email protected]' is not on the allowlist, which prevents CI from being triggered for this patch. If you want Intel GFX CI to accept this address, please contact the script maintainers at [email protected]. Exception occurred during validation, bailing out!