From: Mathieu Desnoyers Date: Fri, 30 Sep 2011 15:42:24 +0000 (-0400) Subject: Fix cast warning X-Git-Tag: v2.0-pre10~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b2c4e8fb4f093e99d5e464c759f3be1f3ea4a83e;p=lttng-modules.git Fix cast warning Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/lttng-kprobes.c b/probes/lttng-kprobes.c index 8e1ae832..784002ae 100644 --- a/probes/lttng-kprobes.c +++ b/probes/lttng-kprobes.c @@ -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. diff --git a/probes/lttng-kretprobes.c b/probes/lttng-kretprobes.c index 60bafc04..6b291018 100644 --- a/probes/lttng-kretprobes.c +++ b/probes/lttng-kretprobes.c @@ -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;