summaryrefslogtreecommitdiff
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2025-12-19 16:39:52 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-01-05 16:43:27 +0100
commit9b00c1609deeb7d6f68a61f3ec6988ab7e6f4535 (patch)
tree0dc1a17f19a34aeed2e9df1c48407be835a2db4e /lib/Kconfig.debug
parent3269701cb25662ae8a9771a864201116626adb50 (diff)
downloadlinux-next-9b00c1609deeb7d6f68a61f3ec6988ab7e6f4535.tar.gz
linux-next-9b00c1609deeb7d6f68a61f3ec6988ab7e6f4535.zip
compiler-context-analysis: Add test stub
Add a simple test stub where we will add common supported patterns that should not generate false positives for each new supported context lock. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20251219154418.3592607-4-elver@google.com
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index cd557e7653a4..8ca42526ee43 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -2835,6 +2835,20 @@ config LINEAR_RANGES_TEST
If unsure, say N.
+config CONTEXT_ANALYSIS_TEST
+ bool "Compiler context-analysis warnings test"
+ depends on EXPERT
+ help
+ This builds the test for compiler-based context analysis. The test
+ does not add executable code to the kernel, but is meant to test that
+ common patterns supported by the analysis do not result in false
+ positive warnings.
+
+ When adding support for new context locks, it is strongly recommended
+ to add supported patterns to this test.
+
+ If unsure, say N.
+
config CMDLINE_KUNIT_TEST
tristate "KUnit test for cmdline API" if !KUNIT_ALL_TESTS
depends on KUNIT