[PATCH v5 0/5] kunit: Add support for suppressing warning backtraces

Dan Carpenter dan.carpenter at linaro.org
Mon Jun 2 07:24:17 UTC 2025


I like suppressing warning messages but there are still many cases, such
as mm/kasan/kasan_test_c.c where printing the warning message is the
whole point.

We should create a standard way that test bots can filter out deliberate
errors from unintentional errors.  This would also help humans who have
to look at test results.

#define intentional_warning_marker(type) do {				\
	pr_err("Triggering intentional %s warning!", type);		\
} while (0)

intentional_warning_marker("KASAN");

regards,
dan carpenter



More information about the dri-devel mailing list