Commit 044f0cfb authored by Matthew Brost's avatar Matthew Brost Committed by Rodrigo Vivi

drm/xe: Drop zero length arrays

Zero-length arrays as fake flexible arrays are deprecated and we are
moving towards adopting C99 flexible-array members instead.
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent ce79c6c4
...@@ -164,7 +164,7 @@ struct xe_engine { ...@@ -164,7 +164,7 @@ struct xe_engine {
/** @entity: DRM sched entity for this engine (1 to 1 relationship) */ /** @entity: DRM sched entity for this engine (1 to 1 relationship) */
struct drm_sched_entity *entity; struct drm_sched_entity *entity;
/** @lrc: logical ring context for this engine */ /** @lrc: logical ring context for this engine */
struct xe_lrc lrc[0]; struct xe_lrc lrc[];
}; };
/** /**
......
...@@ -40,7 +40,7 @@ struct xe_sched_job { ...@@ -40,7 +40,7 @@ struct xe_sched_job {
/** @migrate_flush_flags: Additional flush flags for migration jobs */ /** @migrate_flush_flags: Additional flush flags for migration jobs */
u32 migrate_flush_flags; u32 migrate_flush_flags;
/** @batch_addr: batch buffer address of job */ /** @batch_addr: batch buffer address of job */
u64 batch_addr[0]; u64 batch_addr[];
}; };
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment