Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) with _RET_IP_.

From: Pekka Enberg
Date: Tue Aug 19 2008 - 15:13:17 EST


Eduard - Gabriel Munteanu wrote:
On Tue, Aug 19, 2008 at 01:56:41PM -0500, Christoph Lameter wrote:

Well maybe this patch will do it then:

Subject: slub: Use _RET_IP and use "unsigned long" for kernel text addresses

Use _RET_IP_ instead of buildint_return_address() and make slub use unsigned long
instead of void * for addresses.

Signed-off-by: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>

---
mm/slub.c | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)

It seems Pekka just submitted something like this. Though I think using 0L
should be replaced with 0UL to be fully correct.

Fixed, thanks!

Pekka, should I test one of these variants and resubmit, or will you
merge it by yourself?

I'm merging my patch to the kmemtrace branch now.


--
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/