public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [2.6.3-mm4] mm/slab.c warning in cache_alloc_debugcheck_after
@ 2004-02-27 18:40 Nathan Lynch
  0 siblings, 0 replies; only message in thread
From: Nathan Lynch @ 2004-02-27 18:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

 From a ppc64 build:

   CC      mm/slab.o
mm/slab.c: In function `cache_alloc_debugcheck_after':
mm/slab.c:1976: warning: cast from pointer to integer of different size

Thanks,
Nathan

[-- Attachment #2: cache_alloc_debugcheck_after.patch --]
[-- Type: text/x-patch, Size: 551 bytes --]

diff -urp linux-2.6.3-mm4/mm/slab.c linux-2.6.3-mm4.new/mm/slab.c
--- linux-2.6.3-mm4/mm/slab.c	2004-02-27 12:09:48.000000000 -0600
+++ linux-2.6.3-mm4.new/mm/slab.c	2004-02-27 12:26:09.000000000 -0600
@@ -1973,7 +1973,7 @@ cache_alloc_debugcheck_after(kmem_cache_
 		slabp = GET_PAGE_SLAB(virt_to_page(objp));
 
 		objnr = (objp - slabp->s_mem) / cachep->objsize;
-		slab_bufctl(slabp)[objnr] = (int)caller;
+		slab_bufctl(slabp)[objnr] = (unsigned long)caller;
 	}
 	objp += obj_dbghead(cachep);
 	if (cachep->ctor && cachep->flags & SLAB_POISON) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-27 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 18:40 [PATCH] [2.6.3-mm4] mm/slab.c warning in cache_alloc_debugcheck_after Nathan Lynch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox