[PATCH 14/14] drm/amd: Drop 'amdgpu' from pr_fmt()

Mario Limonciello superm1 at kernel.org
Thu Mar 27 20:38:58 UTC 2025


From: Mario Limonciello <mario.limonciello at amd.com>

As the driver uses drm_*() macros to print messages it's not necessary
to include amdgpu a second time in all messages.

Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h             | 12 ------------
 drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h |  2 +-
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index ffca74a476da9..f987e7f1a8650 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -28,18 +28,6 @@
 #ifndef __AMDGPU_H__
 #define __AMDGPU_H__
 
-#ifdef pr_fmt
-#undef pr_fmt
-#endif
-
-#define pr_fmt(fmt) "amdgpu: " fmt
-
-#ifdef dev_fmt
-#undef dev_fmt
-#endif
-
-#define dev_fmt(fmt) "amdgpu: " fmt
-
 #include "amdgpu_ctx.h"
 
 #include <linux/atomic.h>
diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h b/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h
index cea65093b6ad8..9c849341f7cd8 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h
+++ b/drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h
@@ -28,7 +28,7 @@
 #undef pr_fmt
 #endif
 
-#define pr_fmt(fmt) "amdgpu: [powerplay] " fmt
+#define pr_fmt(fmt) "[powerplay] " fmt
 
 #include <linux/types.h>
 #include <linux/kernel.h>
-- 
2.43.0



More information about the amd-gfx mailing list