]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-generic/bug.h
module: don't use stop_machine for waiting rmmod
[linux-2.6-omap-h63xx.git] / include / asm-generic / bug.h
index 1a0e1a7684bd10bddaf20d88470289149fbc9396..2632328d8646840aab41c8e401a1088e922754f2 100644 (file)
@@ -32,11 +32,11 @@ struct bug_entry {
 #endif
 
 #ifndef __WARN
-#define __WARN() do {                                                  \
-       printk("WARNING: at %s:%d %s()\n", __FILE__,                    \
-               __LINE__, __FUNCTION__);                                \
-       dump_stack();                                                   \
-} while (0)
+#ifndef __ASSEMBLY__
+extern void warn_on_slowpath(const char *file, const int line);
+#define WANT_WARN_ON_SLOWPATH
+#endif
+#define __WARN() warn_on_slowpath(__FILE__, __LINE__)
 #endif
 
 #ifndef WARN_ON