md: only allow remove_and_add_spares when no sync_thread running.
[sfrench/cifs-2.6.git] / lib / smp_processor_id.c
index 835cc6df27764bac804ab5d373a360b526a3501a..85925aaa4fff5f6cb0831d3587c7a3ce18df751b 100644 (file)
@@ -5,7 +5,6 @@
  * DEBUG_PREEMPT variant of smp_processor_id().
  */
 #include <linux/export.h>
-#include <linux/kallsyms.h>
 #include <linux/sched.h>
 
 notrace static unsigned int check_preemption_disabled(const char *what1,
@@ -43,7 +42,7 @@ notrace static unsigned int check_preemption_disabled(const char *what1,
        printk(KERN_ERR "BUG: using %s%s() in preemptible [%08x] code: %s/%d\n",
                what1, what2, preempt_count() - 1, current->comm, current->pid);
 
-       print_symbol("caller is %s\n", (long)__builtin_return_address(0));
+       printk("caller is %pS\n", __builtin_return_address(0));
        dump_stack();
 
 out_enable: