Re: [PATCH v5 0/5] kunit: Add support for suppressing warning backtraces
From: Dan Carpenter
Date: Mon Jun 02 2025 - 03:24:49 EST
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