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

From: Christoph Lameter
Date: Tue Aug 19 2008 - 14:15:25 EST


Eduard - Gabriel Munteanu wrote:

> void *kmem_cache_alloc(struct kmem_cache *s, gfp_t gfpflags)
> {
> - return slab_alloc(s, gfpflags, -1, __builtin_return_address(0));
> + return slab_alloc(s, gfpflags, -1, (void *) _RET_IP_);
> }

Could you get rid of the casts by changing the type of parameter of slab_alloc()?

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