All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Christoph Lameter <clameter@sgi.com>
Cc: linux-mm@kvack.org, Pekka Enberg <penberg@cs.helsinki.fi>
Subject: Re: Slab API: Remove useless ctor parameter and reorder parameters
Date: Tue, 24 Jul 2007 16:59:14 -0700	[thread overview]
Message-ID: <20070724165914.a5945763.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0707232246400.2654@schroedinger.engr.sgi.com>

On Mon, 23 Jul 2007 22:48:03 -0700 (PDT) Christoph Lameter <clameter@sgi.com> wrote:

> Slab constructors currently have a flags parameter that is never used. And
> the order of the arguments is opposite to other slab functions. The object
> pointer is placed before the kmem_cache pointer.
> 
> Convert
> 
> 	ctor(void *object, struct kmem_cache *s, unsigned long flags)
> 
> to
> 
> 	ctor(struct kmem_cache *s, void *object)
> 
> throughout the kernel

arch/i386/mm/pgtable.c:197: error: conflicting types for 'pmd_ctor'
include/asm/pgtable.h:43: error: previous declaration of 'pmd_ctor' was here
make[1]: *** [arch/i386/mm/pgtable.o] Error 1
make: *** [arch/i386/mm/pgtable.o] Error 2
make: *** Waiting for unfinished jobs....
fs/locks.c: In function 'filelock_init':
fs/locks.c:2276: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
mm/rmap.c: In function 'anon_vma_init':
mm/rmap.c:151: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
fs/inode.c: In function 'inode_init':
fs/inode.c:1391: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
mm/shmem.c: In function 'init_inodecache':
mm/shmem.c:2344: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
fs/block_dev.c: In function 'bdev_cache_init':
fs/block_dev.c:532: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
make: *** wait: No child processes.  Stop.


I might let these patches cook a little longer.

Now is the 100% worst time to merge this sort of thing btw: I get to carry
it for two months while the world churns.  Around the -rc7 timeframe would 
be better.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2007-07-24 23:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-24  5:48 Slab API: Remove useless ctor parameter and reorder parameters Christoph Lameter
2007-07-24  7:26 ` Christoph Lameter
2007-07-24 23:59 ` Andrew Morton [this message]
2007-07-25  0:35   ` Christoph Lameter
2007-07-25  0:53     ` Andrew Morton
2007-07-25  3:15       ` Christoph Lameter
2007-07-25 10:33         ` Pekka Enberg
2007-07-25 18:56           ` Christoph Lameter
  -- strict thread matches above, loose matches on Subject: below --
2007-09-14 22:17 Christoph Lameter

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=20070724165914.a5945763.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=clameter@sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=penberg@cs.helsinki.fi \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.