1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

drm/i915/selftests: Fix active retire callback alignment

__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>
This commit is contained in:
Tvrtko Ursulin 2021-04-29 09:35:30 +01:00
parent d8e44e4dd2
commit fd5f262db1
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ static void pulse_put(struct pulse *p)
kref_put(&p->kref, pulse_free); 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)); pulse_put(container_of(active, struct pulse, active));
} }

View file

@ -51,7 +51,7 @@ static int __live_active(struct i915_active *base)
return 0; 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); struct live_active *active = container_of(base, typeof(*active), base);