From b2c4e8fb4f093e99d5e464c759f3be1f3ea4a83e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 30 Sep 2011 11:42:24 -0400 Subject: [PATCH] Fix cast warning Signed-off-by: Mathieu Desnoyers --- probes/lttng-kprobes.c | 2 +- probes/lttng-kretprobes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1