Commit 26775201 authored by Matthew Brost's avatar Matthew Brost
Browse files

drm/xe: Use __counted_by for flexible arrays

parent 66426bf9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ struct xe_exec_queue {
	/** @hw_engine_group_link: link into exec queues in the same hw engine group */
	struct list_head hw_engine_group_link;
	/** @lrc: logical ring context for this exec queue */
	struct xe_lrc *lrc[];
	struct xe_lrc *lrc[] __counted_by(width);
};

/**
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ struct xe_sched_job {

struct xe_sched_job_snapshot {
	u16 batch_addr_len;
	u64 batch_addr[];
	u64 batch_addr[] __counted_by(batch_addr_len);
};

#endif