* [PATCH] drm/tests: mm: Convert to drm_dbg_printer
@ 2024-02-09 14:08 Michał Winiarski
2024-02-09 14:24 ` Thomas Hellström (Intel)
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Michał Winiarski @ 2024-02-09 14:08 UTC (permalink / raw)
To: dri-devel, linux-kernel
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Daniel Vetter, Jani Nikula, Luca Coelho, Michał Winiarski
Fix one of the tests in drm_mm that was not converted prior to
drm_debug_printer removal, causing tests build failure.
Fixes: e154c4fc7bf2d ("drm: remove drm_debug_printer in favor of drm_dbg_printer")
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
---
drivers/gpu/drm/tests/drm_mm_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tests/drm_mm_test.c b/drivers/gpu/drm/tests/drm_mm_test.c
index 1eb0c304f9607..3488d930e3a38 100644
--- a/drivers/gpu/drm/tests/drm_mm_test.c
+++ b/drivers/gpu/drm/tests/drm_mm_test.c
@@ -188,7 +188,7 @@ static void drm_test_mm_init(struct kunit *test)
static void drm_test_mm_debug(struct kunit *test)
{
- struct drm_printer p = drm_debug_printer(test->name);
+ struct drm_printer p = drm_dbg_printer(NULL, DRM_UT_CORE, test->name);
struct drm_mm mm;
struct drm_mm_node nodes[2];
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/tests: mm: Convert to drm_dbg_printer
2024-02-09 14:08 [PATCH] drm/tests: mm: Convert to drm_dbg_printer Michał Winiarski
@ 2024-02-09 14:24 ` Thomas Hellström (Intel)
2024-02-09 14:25 ` Michal Wajdeczko
2024-02-09 15:06 ` Jani Nikula
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Hellström (Intel) @ 2024-02-09 14:24 UTC (permalink / raw)
To: Michał Winiarski, dri-devel, linux-kernel
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Daniel Vetter, Jani Nikula, Luca Coelho
On 2/9/24 15:08, Michał Winiarski wrote:
> Fix one of the tests in drm_mm that was not converted prior to
> drm_debug_printer removal, causing tests build failure.
>
> Fixes: e154c4fc7bf2d ("drm: remove drm_debug_printer in favor of drm_dbg_printer")
> Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
> ---
> drivers/gpu/drm/tests/drm_mm_test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tests/drm_mm_test.c b/drivers/gpu/drm/tests/drm_mm_test.c
> index 1eb0c304f9607..3488d930e3a38 100644
> --- a/drivers/gpu/drm/tests/drm_mm_test.c
> +++ b/drivers/gpu/drm/tests/drm_mm_test.c
> @@ -188,7 +188,7 @@ static void drm_test_mm_init(struct kunit *test)
>
> static void drm_test_mm_debug(struct kunit *test)
> {
> - struct drm_printer p = drm_debug_printer(test->name);
> + struct drm_printer p = drm_dbg_printer(NULL, DRM_UT_CORE, test->name);
> struct drm_mm mm;
> struct drm_mm_node nodes[2];
>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/tests: mm: Convert to drm_dbg_printer
2024-02-09 14:08 [PATCH] drm/tests: mm: Convert to drm_dbg_printer Michał Winiarski
2024-02-09 14:24 ` Thomas Hellström (Intel)
@ 2024-02-09 14:25 ` Michal Wajdeczko
2024-02-09 15:06 ` Jani Nikula
2 siblings, 0 replies; 4+ messages in thread
From: Michal Wajdeczko @ 2024-02-09 14:25 UTC (permalink / raw)
To: Michał Winiarski, dri-devel, linux-kernel
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Daniel Vetter, Jani Nikula, Luca Coelho
On 09.02.2024 15:08, Michał Winiarski wrote:
> Fix one of the tests in drm_mm that was not converted prior to
> drm_debug_printer removal, causing tests build failure.
>
> Fixes: e154c4fc7bf2d ("drm: remove drm_debug_printer in favor of drm_dbg_printer")
> Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> ---
> drivers/gpu/drm/tests/drm_mm_test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tests/drm_mm_test.c b/drivers/gpu/drm/tests/drm_mm_test.c
> index 1eb0c304f9607..3488d930e3a38 100644
> --- a/drivers/gpu/drm/tests/drm_mm_test.c
> +++ b/drivers/gpu/drm/tests/drm_mm_test.c
> @@ -188,7 +188,7 @@ static void drm_test_mm_init(struct kunit *test)
>
> static void drm_test_mm_debug(struct kunit *test)
> {
> - struct drm_printer p = drm_debug_printer(test->name);
> + struct drm_printer p = drm_dbg_printer(NULL, DRM_UT_CORE, test->name);
> struct drm_mm mm;
> struct drm_mm_node nodes[2];
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/tests: mm: Convert to drm_dbg_printer
2024-02-09 14:08 [PATCH] drm/tests: mm: Convert to drm_dbg_printer Michał Winiarski
2024-02-09 14:24 ` Thomas Hellström (Intel)
2024-02-09 14:25 ` Michal Wajdeczko
@ 2024-02-09 15:06 ` Jani Nikula
2 siblings, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2024-02-09 15:06 UTC (permalink / raw)
To: Michał Winiarski, dri-devel, linux-kernel
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Daniel Vetter, Luca Coelho, Michał Winiarski
On Fri, 09 Feb 2024, Michał Winiarski <michal.winiarski@intel.com> wrote:
> Fix one of the tests in drm_mm that was not converted prior to
> drm_debug_printer removal, causing tests build failure.
My bad, thanks for fixing this.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
For one thing, I must not have git grep'd for new drm_debug_printer()
additions since I wrote the patch.
For another, I'm missing some kernel config, because I built the changes
on x86, arm and arm64 before pushing. In particular the arm and arm64
configs I just recently added from drm-rerere repo. Those defconfigs
should probably be updated. They don't have CONFIG_DRM_XE=m either.
BR,
Jani.
>
> Fixes: e154c4fc7bf2d ("drm: remove drm_debug_printer in favor of drm_dbg_printer")
> Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
> ---
> drivers/gpu/drm/tests/drm_mm_test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tests/drm_mm_test.c b/drivers/gpu/drm/tests/drm_mm_test.c
> index 1eb0c304f9607..3488d930e3a38 100644
> --- a/drivers/gpu/drm/tests/drm_mm_test.c
> +++ b/drivers/gpu/drm/tests/drm_mm_test.c
> @@ -188,7 +188,7 @@ static void drm_test_mm_init(struct kunit *test)
>
> static void drm_test_mm_debug(struct kunit *test)
> {
> - struct drm_printer p = drm_debug_printer(test->name);
> + struct drm_printer p = drm_dbg_printer(NULL, DRM_UT_CORE, test->name);
> struct drm_mm mm;
> struct drm_mm_node nodes[2];
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-09 15:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-09 14:08 [PATCH] drm/tests: mm: Convert to drm_dbg_printer Michał Winiarski
2024-02-09 14:24 ` Thomas Hellström (Intel)
2024-02-09 14:25 ` Michal Wajdeczko
2024-02-09 15:06 ` Jani Nikula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox