mm/slub.c warnings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Saturday, February 9, 2008 - 10:13 am

Hi,

I get these warnings when compiling mm/slub.c in linux-2.6.git:

mm/slub.c: In function 'slab_alloc':
mm/slub.c:1637: warning: assignment makes pointer from integer without a cast
mm/slub.c:1637: warning: assignment makes pointer from integer without a cast
mm/slub.c: In function 'slab_free':
mm/slub.c:1796: warning: assignment makes pointer from integer without a cast
mm/slub.c:1796: warning: assignment makes pointer from integer without a cast

The actual lines are calls to cmpxchg_local(). This is probably
because I'm compiling with M386. I'm guessing the source of the
warnings is in include/asm-x86/cmpxchg_32.h, lines 283 and 286. Config
attached.

Vegard
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mm/slub.c warnings, Vegard Nossum, (Sat Feb 9, 10:13 am)
Re: mm/slub.c warnings, Christoph Lameter, (Sat Feb 9, 5:21 pm)
[PATCH] Cast cmpxchg and cmpxchg_local result for 386 and 486, Mathieu Desnoyers, (Sun Feb 10, 8:28 am)