@@ -166,10 +166,10 @@ xe_validation_device_init(struct xe_validation_device *val)
166166 */
167167DEFINE_CLASS (xe_validation , struct xe_validation_ctx * ,
168168 if (_T ) xe_validation_ctx_fini (_T );,
169- ({_ret = xe_validation_ctx_init (_ctx , _val , _exec , _flags );
170- _ret ? NULL : _ctx ; }),
169+ ({* _ret = xe_validation_ctx_init (_ctx , _val , _exec , _flags );
170+ * _ret ? NULL : _ctx ; }),
171171 struct xe_validation_ctx * _ctx , struct xe_validation_device * _val ,
172- struct drm_exec * _exec , const struct xe_val_flags _flags , int _ret );
172+ struct drm_exec * _exec , const struct xe_val_flags _flags , int * _ret );
173173static inline void * class_xe_validation_lock_ptr (class_xe_validation_t * _T )
174174{return * _T ; }
175175#define class_xe_validation_is_conditional true
@@ -186,7 +186,7 @@ static inline void *class_xe_validation_lock_ptr(class_xe_validation_t *_T)
186186 * exhaustive eviction.
187187 */
188188#define xe_validation_guard (_ctx , _val , _exec , _flags , _ret ) \
189- scoped_guard(xe_validation, _ctx, _val, _exec, _flags, _ret) \
189+ scoped_guard(xe_validation, _ctx, _val, _exec, _flags, & _ret) \
190190 drm_exec_until_all_locked(_exec)
191191
192192#endif
0 commit comments