From: Christian König <christian.koenig@amd.com>
To: Julian Braha <julianbraha@gmail.com>,
mripard@kernel.org, maarten.lankhorst@linux.intel.com,
tzimmermann@suse.de, karolina.stolarek@intel.com
Cc: airlied@gmail.com, simona@ffwll.ch,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm: fix dead default for DRM_TTM_KUNIT_TEST
Date: Mon, 23 Mar 2026 10:43:51 +0100 [thread overview]
Message-ID: <08eaba8c-ee4c-4c9c-a4f1-781949919cd8@amd.com> (raw)
In-Reply-To: <20260322220125.1380776-1-julianbraha@gmail.com>
Hi Julian,
On 3/22/26 23:01, Julian Braha wrote:
> The DRM_TTM_KUNIT_TEST config option should default
> to KUNIT_ALL_TESTS so that if all tests are enabled then
> it is included, but currently the 'default KUNIT_ALL_TESTS'
> statement is shadowed by an unconditional 'default n',
> meaning that this second default statement is currently dead code.
I need to double check the discussion back then, but I think the tests were pretty beta when initially merged.
So it was intentionally to not include them automatically when KUNIT_ALL_TESTS is enabled.
We can probably do that since the tests are stable now, but I think we should definitely drop the Fixes tag.
Regards,
Christian.
>
> This dead code was found by kconfirm, a static analysis
> tool for Kconfig.
>
> Fixes: e3912d09bf8d ("drm/ttm: Introduce KUnit test")
> Signed-off-by: Julian Braha <julianbraha@gmail.com>
> ---
> drivers/gpu/drm/Kconfig.debug | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/Kconfig.debug b/drivers/gpu/drm/Kconfig.debug
> index 05dc43c0b8c5..75c186f938b0 100644
> --- a/drivers/gpu/drm/Kconfig.debug
> +++ b/drivers/gpu/drm/Kconfig.debug
> @@ -86,7 +86,6 @@ config DRM_KUNIT_TEST
>
> config DRM_TTM_KUNIT_TEST
> tristate "KUnit tests for TTM" if !KUNIT_ALL_TESTS
> - default n
> depends on DRM && KUNIT && MMU && (UML || COMPILE_TEST)
> select DRM_TTM
> select DRM_BUDDY
> --
> 2.51.2
>
next prev parent reply other threads:[~2026-03-23 9:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-22 22:01 [PATCH] drm: fix dead default for DRM_TTM_KUNIT_TEST Julian Braha
2026-03-23 9:43 ` Christian König [this message]
2026-03-24 22:10 ` Claude review: " Claude Code Review Bot
2026-03-24 22:10 ` Claude Code Review Bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08eaba8c-ee4c-4c9c-a4f1-781949919cd8@amd.com \
--to=christian.koenig@amd.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=julianbraha@gmail.com \
--cc=karolina.stolarek@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox