void warn_slowpath_null(const char *file, int line)
{
warn_slowpath_common(file, line, __builtin_return_address(0), NULL);
}
#define __WARN() warn_slowpath_null(__FILE__, __LINE__)
#define WARN_ON(condition) ({
\
int __ret_warn_on = !!(condition);
\
if (unlikely(__ret_warn_on))
\
__WARN();
\
unlikely(__ret_warn_on);
\
})
WARN(), WARN_ON(), WARN_ON_ONCE, and so on can be used to report significant issues that need prompt attention if they should ever appear at runtime. Use the versions with printk format strings to provide better diagnostics.