Re: [PATCH 2/4] perf_event: fix getting point

From: Xiao Guangrong
Date: Tue Dec 15 2009 - 20:34:17 EST




Frederic Weisbecker wrote:

>> We can't do it in x86_32:
>> error: cast to pointer from integer of different size
>
>
> You can just do:
>
> ptr = (void *)(unsigned long)value;
>

Yeah, i forget this, it work well both in 32/64 machine.

Thanks,
Xiao
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/