summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2023-05-26 09:43:40 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-19 18:34:01 -0500
commitcc982f0c168149def829f204b575fad546e9d043 (patch)
tree387667718c3d6a41c66e31b47aa214199a7007a6 /drivers/gpu
parent72906d340b60f3dae545deef77376a0f598bece7 (diff)
downloadlwn-cc982f0c168149def829f204b575fad546e9d043.tar.gz
lwn-cc982f0c168149def829f204b575fad546e9d043.zip
drm/xe/rtp: Replace XE_WARN_ON
Now that rule_matches() always has an xe pointer, replace the XE_WARN_ON with the more appropriate drm_warn(). Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20230526164358.86393-4-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/xe/xe_rtp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_rtp.c b/drivers/gpu/drm/xe/xe_rtp.c
index 5be25fe0e8e4..5dcdfe45f0cb 100644
--- a/drivers/gpu/drm/xe/xe_rtp.c
+++ b/drivers/gpu/drm/xe/xe_rtp.c
@@ -84,7 +84,9 @@ static bool rule_matches(const struct xe_device *xe,
match = r->match_func(gt, hwe);
break;
default:
- XE_WARN_ON(r->match_type);
+ drm_warn(&xe->drm, "Invalid RTP match %u\n",
+ r->match_type);
+ match = false;
}
if (!match)