From: Richard Fitzgerald <rf@opensource.cirrus.com>
To: Mark Brown <broonie@kernel.org>
Cc: <tiwai@suse.com>, <linux-sound@vger.kernel.org>,
<alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>,
<patches@opensource.cirrus.com>
Subject: Re: [PATCH v2 6/6] ASoC: cs-amp-lib: Add KUnit test for calibration helpers
Date: Fri, 23 Feb 2024 17:02:03 +0000 [thread overview]
Message-ID: <956f2b88-8b52-45b3-a27d-fa8e75a02642@opensource.cirrus.com> (raw)
In-Reply-To: <ZdjMIVYp7Qb/Tt9d@finisterre.sirena.org.uk>
On 23/02/2024 16:47, Mark Brown wrote:
> On Fri, Feb 23, 2024 at 03:39:10PM +0000, Richard Fitzgerald wrote:
>
>> +config SND_SOC_CS_AMP_LIB_TEST
>> + tristate "KUnit test for Cirrus Logic cs-amp-lib"
>> + depends on ACPI || COMPILE_TEST || KUNIT
>
> Should this not depend unconditionally on KUNIT rather than KUNIT or
> some other stuff? ie
>
> depends on ACPI || COMPILE_TEST
> depends on KUNIT
>
> or equivalent.
>
Now I look at it again, it's not correct. It's the ACPI || COMPILE_TEST
that is bogus.
>> +#define TYPESAFE_ACTIVATE_STATIC_STUB_PTR(test, fn_ptr, replacement_fn) \
>> + do { \
>> + typecheck_fn(typeof(fn_ptr), replacement_fn); \
>> + __kunit_activate_static_stub(test, fn_ptr, replacement_fn); \
>> + } while (0)
>
> Should this be somewhere more generic in the kunit headers?
Damn, I meant to change this. I did a patch a while ago to fix
kunit_activate_static_stub() so that it worked but it takes a really
long time for kunit patches to end up in the mainline kernel. Hence this
was a temporary workaround. I noticed my fix has gone in at last but I
forgot to remove this workaround.
Can you skip this patch and take the others (assuming you are happy with
them) and I'll fixup and resubmit this test later.
next prev parent reply other threads:[~2024-02-23 17:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 15:39 [PATCH v2 0/6] ALSA: cs35l56: Apply calibration from EFI Richard Fitzgerald
2024-02-23 15:39 ` [PATCH v2 1/6] ASoC: wm_adsp: Add wm_adsp_start() and wm_adsp_stop() Richard Fitzgerald
2024-02-23 15:39 ` [PATCH v2 2/6] ASoC: cs-amp-lib: Add helpers for factory calibration data Richard Fitzgerald
2024-02-23 15:39 ` [PATCH v2 3/6] ASoC: cs35l56: Add helper functions for amp calibration Richard Fitzgerald
2024-02-23 15:39 ` [PATCH v2 4/6] ASoC: cs35l56: Apply amp calibration from EFI data Richard Fitzgerald
2024-02-23 15:39 ` [PATCH v2 5/6] ALSA: hda: " Richard Fitzgerald
2024-02-23 15:39 ` [PATCH v2 6/6] ASoC: cs-amp-lib: Add KUnit test for calibration helpers Richard Fitzgerald
2024-02-23 16:47 ` Mark Brown
2024-02-23 17:02 ` Richard Fitzgerald [this message]
2024-02-23 18:15 ` Mark Brown
2024-02-24 2:57 ` (subset) [PATCH v2 0/6] ALSA: cs35l56: Apply calibration from EFI Mark Brown
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=956f2b88-8b52-45b3-a27d-fa8e75a02642@opensource.cirrus.com \
--to=rf@opensource.cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=tiwai@suse.com \
/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