[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B2838A7.7020509@cn.fujitsu.com>
Date: Wed, 16 Dec 2009 09:32:23 +0800
From: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
To: Frederic Weisbecker <fweisbec@...il.com>
CC: Ingo Molnar <mingo@...e.hu>, Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/4] perf_event: fix getting point
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists