Remove dependency on vmalloc_sync_all symbol
[lttng-modules.git] / ltt-events.c
index 184f2daa145caf573ff522bfd006aa3b8a8eaaca..9eb2c2f2ef838998e7eedb3fee14f0dddc7b9aa2 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/mutex.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
-#include <linux/vmalloc.h>     /* For vmalloc_sync_all */
+#include "wrapper/symbols.h"   /* for wrapper_vmalloc_sync_all() */
 #include "ltt-events.h"
 
 static LIST_HEAD(sessions);
@@ -96,7 +96,7 @@ end:
        return ret;
 }
 
-static struct ltt_transport *ltt_transport_find(char *name)
+static struct ltt_transport *ltt_transport_find(const char *name)
 {
        struct ltt_transport *transport;
 
@@ -269,7 +269,7 @@ void ltt_transport_register(struct ltt_transport *transport)
         * registered. We deal with this here so we don't have to call
         * vmalloc_sync_all() in each module's init.
         */
-       vmalloc_sync_all();
+       wrapper_vmalloc_sync_all();
 
        mutex_lock(&sessions_mutex);
        list_add_tail(&transport->node, &ltt_transport_list);
This page took 0.022919 seconds and 4 git commands to generate.