Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] drm/xe: Use enum instead of hard coding
@ 2024-03-21 10:39 Himal Prasad Ghimiray
  2024-03-21 10:30 ` ✓ CI.Patch_applied: success for series starting with [1/1] " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Himal Prasad Ghimiray @ 2024-03-21 10:39 UTC (permalink / raw)
  To: intel-xe; +Cc: Himal Prasad Ghimiray, Matthew Brost

Use DRM_SCHED_PRIORITY_KERNEL instead of hardcoded value 0.

Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
---
Coverity Reports "Parse warning (PW.MIXED_ENUM_TYPE)
1. mixed_enum_type enumerated type mixed with another type"

 drivers/gpu/drm/xe/xe_gpu_scheduler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler.h b/drivers/gpu/drm/xe/xe_gpu_scheduler.h
index 10c6bb9c9386..1f712f4fc76a 100644
--- a/drivers/gpu/drm/xe/xe_gpu_scheduler.h
+++ b/drivers/gpu/drm/xe/xe_gpu_scheduler.h
@@ -63,7 +63,7 @@ static inline int
 xe_sched_entity_init(struct xe_sched_entity *entity,
 		     struct xe_gpu_scheduler *sched)
 {
-	return drm_sched_entity_init(entity, 0,
+	return drm_sched_entity_init(entity, DRM_SCHED_PRIORITY_KERNEL,
 				     (struct drm_gpu_scheduler **)&sched,
 				     1, NULL);
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-03-21 19:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21 10:39 [PATCH 1/1] drm/xe: Use enum instead of hard coding Himal Prasad Ghimiray
2024-03-21 10:30 ` ✓ CI.Patch_applied: success for series starting with [1/1] " Patchwork
2024-03-21 10:30 ` ✓ CI.checkpatch: " Patchwork
2024-03-21 10:31 ` ✓ CI.KUnit: " Patchwork
2024-03-21 10:42 ` ✓ CI.Build: " Patchwork
2024-03-21 10:47 ` ✓ CI.Hooks: " Patchwork
2024-03-21 10:48 ` ✓ CI.checksparse: " Patchwork
2024-03-21 11:14 ` ✓ CI.BAT: " Patchwork
2024-03-21 19:41 ` [PATCH 1/1] " Rodrigo Vivi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox