diff options
author | Francois Dugast <francois.dugast@intel.com> | 2023-09-12 08:36:33 +0000 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:41:07 -0500 |
commit | 5c0553cdc811bb6af4f1bfef178bd07fc16a797e (patch) | |
tree | d631af03e2602564d748ef2c1354f66c7bd568d2 /drivers/gpu/drm/xe/xe_gt_debugfs.c | |
parent | 30278e299646a1a8f9c1fd1da33768440f71bb42 (diff) | |
download | lwn-5c0553cdc811bb6af4f1bfef178bd07fc16a797e.tar.gz lwn-5c0553cdc811bb6af4f1bfef178bd07fc16a797e.zip |
drm/xe: Replace XE_WARN_ON with drm_warn when just printing a string
Use the generic drm_warn instead of the driver-specific XE_WARN_ON
in cases where XE_WARN_ON is used to unconditionally print a debug
message.
v2: Rebase
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_gt_debugfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_debugfs.c b/drivers/gpu/drm/xe/xe_gt_debugfs.c index b871e45af813..9229fd5b01cc 100644 --- a/drivers/gpu/drm/xe/xe_gt_debugfs.c +++ b/drivers/gpu/drm/xe/xe_gt_debugfs.c @@ -151,6 +151,7 @@ static const struct drm_info_list debugfs_list[] = { void xe_gt_debugfs_register(struct xe_gt *gt) { + struct xe_device *xe = gt_to_xe(gt); struct drm_minor *minor = gt_to_xe(gt)->drm.primary; struct dentry *root; struct drm_info_list *local; @@ -162,7 +163,7 @@ void xe_gt_debugfs_register(struct xe_gt *gt) sprintf(name, "gt%d", gt->info.id); root = debugfs_create_dir(name, minor->debugfs_root); if (IS_ERR(root)) { - XE_WARN_ON("Create GT directory failed"); + drm_warn(&xe->drm, "Create GT directory failed"); return; } @@ -172,7 +173,7 @@ void xe_gt_debugfs_register(struct xe_gt *gt) * passed in (e.g. can't define this on the stack). */ #define DEBUGFS_SIZE (ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list)) - local = drmm_kmalloc(>_to_xe(gt)->drm, DEBUGFS_SIZE, GFP_KERNEL); + local = drmm_kmalloc(&xe->drm, DEBUGFS_SIZE, GFP_KERNEL); if (!local) return; |