[RFC 0/8] x86: Mad WARN() hackery

Peter Zijlstra posted 8 patches 6 months, 2 weeks ago
[RFC 0/8] x86: Mad WARN() hackery
Posted by Peter Zijlstra 6 months, 2 weeks ago
Hi,

I've been annoyed at how WARN() works for quite some time, and Alessandro has
been trying to make it even worse.

This is an attempt at making WARN() generate less crap for the most common
cases. It is somewhat magical, but appears to be working for the simple cases
I've tried. Specifically, it moves the __warn_printf() into the exception for
the case of 3 or less arguments.

This would hopefully allow Allesandro to put the kunit hackery in report_bug()
and not spread it around all the WARN() sites like he does now.