public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nathan Lynch <nathanl@austin.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH] [2.6.3-mm4] mm/slab.c warning in cache_alloc_debugcheck_after
Date: Fri, 27 Feb 2004 12:40:58 -0600	[thread overview]
Message-ID: <403F8F3A.70302@austin.ibm.com> (raw)

[-- 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) {

                 reply	other threads:[~2004-02-27 18:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=403F8F3A.70302@austin.ibm.com \
    --to=nathanl@austin.ibm.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox