lkml.org 
[lkml]   [2008]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) with _RET_IP_.
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()?



\
 
 \ /
  Last update: 2008-08-19 20:17    [W:0.048 / U:4.796 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site