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

Reply via email to