diff options
| author | Jani Nikula <[email protected]> | 2025-01-23 15:09:10 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2025-03-04 15:03:43 +0000 |
| commit | e5f3081291eb958b46775edfd29d1f5367078474 (patch) | |
| tree | 1cd843eed581fd88080520491b83aeb9fe45e7c5 /drivers/gpu/drm/scheduler/sched_entity.c | |
| parent | drm/rockchip: stop passing non struct drm_device to drm_err() and friends (diff) | |
| download | kernel-e5f3081291eb958b46775edfd29d1f5367078474.tar.gz kernel-e5f3081291eb958b46775edfd29d1f5367078474.zip | |
drm/sched: stop passing non struct drm_device to drm_err() and friends
The expectation is that the struct drm_device based logging helpers get
passed an actual struct drm_device pointer rather than some random
struct pointer where you can dereference the ->dev member.
Convert drm_err(sched, ...) to dev_err(sched->dev, ...) and
similar. This matches current usage, as struct drm_device is not
available, but drops "[drm]" or "[drm] *ERROR*" prefix from logging.
Unfortunately, there's no dev_WARN_ON(), so the conversion is not
exactly the same.
Reviewed-by: Simona Vetter <[email protected]>
Acked-by: Philipp Stanner <[email protected]>
Reviewed-by: Louis Chauvet <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/fe441dd1469d2b03e6b2ff247078bdde2011c6e3.1737644530.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/scheduler/sched_entity.c')
| -rw-r--r-- | drivers/gpu/drm/scheduler/sched_entity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/scheduler/sched_entity.c b/drivers/gpu/drm/scheduler/sched_entity.c index 87f88259ddf6..a6d2a4722d82 100644 --- a/drivers/gpu/drm/scheduler/sched_entity.c +++ b/drivers/gpu/drm/scheduler/sched_entity.c @@ -91,7 +91,7 @@ int drm_sched_entity_init(struct drm_sched_entity *entity, * the lowest priority available. */ if (entity->priority >= sched_list[0]->num_rqs) { - drm_err(sched_list[0], "entity with out-of-bounds priority:%u num_rqs:%u\n", + dev_err(sched_list[0]->dev, "entity has out-of-bounds priority: %u. num_rqs: %u\n", entity->priority, sched_list[0]->num_rqs); entity->priority = max_t(s32, (s32) sched_list[0]->num_rqs - 1, (s32) DRM_SCHED_PRIORITY_KERNEL); |
