bug: consolidate warn_slowpath_fmt() usage
[platform/kernel/linux-starfive.git] / include / asm-generic / bug.h
index 2d35bbf..598d707 100644 (file)
@@ -93,9 +93,8 @@ struct bug_entry {
 extern __printf(4, 5)
 void warn_slowpath_fmt(const char *file, const int line, unsigned taint,
                       const char *fmt, ...);
-extern void warn_slowpath_null(const char *file, const int line);
 #define WANT_WARN_ON_SLOWPATH
-#define __WARN()               warn_slowpath_null(__FILE__, __LINE__)
+#define __WARN()               __WARN_printf(TAINT_WARN, NULL)
 #define __WARN_printf(taint, arg...)                                   \
        warn_slowpath_fmt(__FILE__, __LINE__, taint, arg)
 #else