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

Christoph Lameter
2008-08-19T18:14:01Z

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()?