Mark drm_sched_entity_init() as __must_check as preparation to make the
API a bit stricter in what input combinations it accepts.

Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Christian König <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Danilo Krummrich <[email protected]>
Cc: Philipp Stanner <[email protected]>
---
 include/drm/gpu_scheduler.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h
index 3b0978fa8cf0..23ec446595ae 100644
--- a/include/drm/gpu_scheduler.h
+++ b/include/drm/gpu_scheduler.h
@@ -718,11 +718,11 @@ static inline bool drm_sched_invalidate_job(struct 
drm_sched_job *s_job,
 
 /* Entities */
 
-int drm_sched_entity_init(struct drm_sched_entity *entity,
-                         enum drm_sched_priority priority,
-                         struct drm_gpu_scheduler **sched_list,
-                         unsigned int num_sched_list,
-                         atomic_t *guilty);
+int __must_check drm_sched_entity_init(struct drm_sched_entity *entity,
+                                      enum drm_sched_priority priority,
+                                      struct drm_gpu_scheduler **sched_list,
+                                      unsigned int num_sched_list,
+                                      atomic_t *guilty);
 long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout);
 void drm_sched_entity_kill(struct drm_sched_entity *entity);
 void drm_sched_entity_fini(struct drm_sched_entity *entity);
-- 
2.56.0

Reply via email to