Skip to content

Commit

Permalink
drm/i915/selftests: Fix active retire callback alignment
Browse files Browse the repository at this point in the history
__i915_active_call annotation is required on the retire callback to ensure
correct function alignment.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210429083530.849546-2-tvrtko.ursulin@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
  • Loading branch information
Tvrtko Ursulin committed Apr 30, 2021
1 parent d8e44e4 commit fd5f262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void pulse_put(struct pulse *p)
kref_put(&p->kref, pulse_free);
}

static void pulse_retire(struct i915_active *active)
__i915_active_call static void pulse_retire(struct i915_active *active)
{
pulse_put(container_of(active, struct pulse, active));
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/selftests/i915_active.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int __live_active(struct i915_active *base)
return 0;
}

static void __live_retire(struct i915_active *base)
__i915_active_call static void __live_retire(struct i915_active *base)
{
struct live_active *active = container_of(base, typeof(*active), base);

Expand Down

0 comments on commit fd5f262

Please sign in to comment.