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

Pekka J Enberg
2008-08-19T18:50:07Z

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