public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: cs-amp-lib-test: Fix missing include of kunit/test-bug.h
@ 2025-10-16  9:51 Richard Fitzgerald
  2025-10-16  9:53 ` Richard Fitzgerald
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Fitzgerald @ 2025-10-16  9:51 UTC (permalink / raw)
  To: broonie; +Cc: linux-sound, linux-kernel, patches

cs-amp-lib-test uses functions from kunit/test-bug.h but wasn't
including it.

This error was found by smatch.

Fixes: 177862317a98 ("ASoC: cs-amp-lib: Add KUnit test for calibration helpers")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
 sound/soc/codecs/cs-amp-lib-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/cs-amp-lib-test.c b/sound/soc/codecs/cs-amp-lib-test.c
index 2fde84309338..3406887cdfa2 100644
--- a/sound/soc/codecs/cs-amp-lib-test.c
+++ b/sound/soc/codecs/cs-amp-lib-test.c
@@ -7,6 +7,7 @@
 
 #include <kunit/resource.h>
 #include <kunit/test.h>
+#include <kunit/test-bug.h>
 #include <kunit/static_stub.h>
 #include <linux/device/faux.h>
 #include <linux/firmware/cirrus/cs_dsp.h>
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] ASoC: cs-amp-lib-test: Fix missing include of kunit/test-bug.h
@ 2025-10-16  9:48 Richard Fitzgerald
  2025-10-21 11:37 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Fitzgerald @ 2025-10-16  9:48 UTC (permalink / raw)
  To: broonie; +Cc: linux-sound, linux-kernel, patches

cs-amp-lib-test uses functions from kunit/test-bug.h but wasn't
including it.

This error was found by smatch.

Fixes: 177862317a98 ("ASoC: cs-amp-lib: Add KUnit test for calibration helpers")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
 sound/soc/codecs/cs-amp-lib-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/cs-amp-lib-test.c b/sound/soc/codecs/cs-amp-lib-test.c
index 2fde84309338..3406887cdfa2 100644
--- a/sound/soc/codecs/cs-amp-lib-test.c
+++ b/sound/soc/codecs/cs-amp-lib-test.c
@@ -7,6 +7,7 @@
 
 #include <kunit/resource.h>
 #include <kunit/test.h>
+#include <kunit/test-bug.h>
 #include <kunit/static_stub.h>
 #include <linux/device/faux.h>
 #include <linux/firmware/cirrus/cs_dsp.h>
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-21 11:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16  9:51 [PATCH] ASoC: cs-amp-lib-test: Fix missing include of kunit/test-bug.h Richard Fitzgerald
2025-10-16  9:53 ` Richard Fitzgerald
  -- strict thread matches above, loose matches on Subject: below --
2025-10-16  9:48 Richard Fitzgerald
2025-10-21 11:37 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox