On Fri, 17 Nov 2006 21:44:13 -0800 (PST) Christoph Lameter <[email protected]> wrote: > > Use an external declaration in exit.c for fs_cachep. > > fs_cachep is only used in kernel/exit.c and in kernel/fork.c. > It is defined in kernel/fork.c so we need to add an external > declaration to kernel/exit.c to be able to avoid the > declaration. > > Signed-off-by: Christoph Lameter <[email protected]> > > --- linux-2.6.19-rc5-mm2.orig/kernel/exit.c 2006-11-15 16:48:11.485511089 -0600 > +++ linux-2.6.19-rc5-mm2/kernel/exit.c 2006-11-17 23:04:09.764530373 -0600 > @@ -48,6 +48,8 @@ > #include <asm/pgtable.h> > #include <asm/mmu_context.h> > > +extern kmem_cache_t *fs_cachep; You know what I am going to say, right? :-) -- Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Attachment:
pgpElkAHtg5us.pgp
Description: PGP signature
- Follow-Ups:
- Re: [RFC 6/7] Use an external declaration in exit.c for fs_cachep
- From: Christoph Lameter <[email protected]>
- Re: [RFC 6/7] Use an external declaration in exit.c for fs_cachep
- From: Oleg Verych <[email protected]>
- Re: [RFC 6/7] Use an external declaration in exit.c for fs_cachep
- References:
- [RFC 0/7] Remove slab cache declarations in slab.h
- From: Christoph Lameter <[email protected]>
- [RFC 6/7] Use an external declaration in exit.c for fs_cachep
- From: Christoph Lameter <[email protected]>
- [RFC 0/7] Remove slab cache declarations in slab.h
- Prev by Date: Re: [RFC 5/7] Use external declaration for filep_cachep
- Next by Date: Re: [PATCH 20/20] x86_64: Move CPU verification code to common file
- Previous by thread: [RFC 6/7] Use an external declaration in exit.c for fs_cachep
- Next by thread: Re: [RFC 6/7] Use an external declaration in exit.c for fs_cachep
- Index(es):