mm/slub.c warnings

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Kernel Mailing List <linux-kernel@...>
Cc: Christoph Lameter <clameter@...>, Pekka Enberg <penberg@...>
Date: Saturday, February 9, 2008 - 1:13 pm

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, 1:13 pm)
Re: mm/slub.c warnings, Christoph Lameter, (Sat Feb 9, 8:21 pm)
[PATCH] Cast cmpxchg and cmpxchg_local result for 386 and 486, Mathieu Desnoyers, (Sun Feb 10, 11:28 am)