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

From: Pekka J Enberg
Date: Tue Aug 19 2008 - 14:50:27 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_);
> > }

On Tue, 19 Aug 2008, Christoph Lameter wrote:
> Could you get rid of the casts by changing the type of parameter of slab_alloc()?

Yeah. How about something like this?

Pekka