Fix cast warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Sep 2011 15:42:24 +0000 (11:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Sep 2011 15:42:24 +0000 (11:42 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/lttng-kprobes.c
probes/lttng-kretprobes.c

index 8e1ae832cd82abb14d0413a1aee5b13cb1cd9fc8..784002aed09662d179a01bea12a0c4f706bbcaf4 100644 (file)
@@ -119,7 +119,7 @@ int lttng_kprobes_register(const char *name,
                        event->u.kprobe.symbol_name;
        }
        event->u.kprobe.kp.offset = offset;
-       event->u.kprobe.kp.addr = (void *) addr;
+       event->u.kprobe.kp.addr = (void *) (unsigned long) addr;
 
        /*
         * Ensure the memory we just allocated don't trigger page faults.
index 60bafc043a65ef072d5c5aca1dcc24906722fbc4..6b291018f715fc1599b10ba7efe35916c66236f6 100644 (file)
@@ -193,7 +193,7 @@ int lttng_kretprobes_register(const char *name,
                        alloc_symbol;
        }
        lttng_krp->krp.kp.offset = offset;
-       lttng_krp->krp.kp.addr = (void *) addr;
+       lttng_krp->krp.kp.addr = (void *) (unsigned long) addr;
 
        /* Allow probe handler to find event structures */
        lttng_krp->event[EVENT_ENTRY] = event_entry;
This page took 0.028527 seconds and 4 git commands to generate.