lkml.org 
[lkml]   [2011]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH linux-next-20110718] Fix build error at mm/slab.c .
On Wed, 20 Jul 2011, Christoph Lameter wrote:

> On Wed, 20 Jul 2011, Pekka Enberg wrote:
>
>>> +++ linux-3.0-next/mm/slab.c
>>> @@ -3153,12 +3153,9 @@ static void *cache_alloc_debugcheck_afte
>>> objp += obj_offset(cachep);
>>> if (cachep->ctor && cachep->flags & SLAB_POISON)
>>> cachep->ctor(objp);
>>> -#if ARCH_SLAB_MINALIGN
>>> - if ((u32)objp & (ARCH_SLAB_MINALIGN-1)) {
>>> + if (ARCH_SLAB_MINALIGN && ((u32)objp & (ARCH_SLAB_MINALIGN-1)))
>>> printk(KERN_ERR "0x%p: not aligned to
>>> ARCH_SLAB_MINALIGN=%d\n",
>>> objp, ARCH_SLAB_MINALIGN);
>>> - }
>>> -#endif
>>> return objp;
>>
>> Looks good to me. Christoph?
>
> Looks okay but I thought you already had a patch that took out the #if
> there?

Indeed. Tetsuo, it's commit c225150 ("slab: fix DEBUG_SLAB build") in
slab.git. It should appear in linux-next soon.

Pekka



\
 
 \ /
  Last update: 2011-07-20 19:39    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog