linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Badari Pulavarty <pbadari@gmail.com>
Cc: linux-mm <linux-mm@kvack.org>, Andy Whitcroft <apw@shadowen.org>,
	Christoph Lameter <clameter@sgi.com>
Subject: Re: 2.6.21-rc7-mm1 on test.kernel.org
Date: Tue, 24 Apr 2007 18:22:12 -0700	[thread overview]
Message-ID: <20070424182212.bbe76894.akpm@linux-foundation.org> (raw)
In-Reply-To: <1177462288.1281.11.camel@dyn9047017100.beaverton.ibm.com>

On Tue, 24 Apr 2007 17:51:27 -0700 Badari Pulavarty <pbadari@gmail.com> wrote:

> On Tue, 2007-04-24 at 15:51 -0700, Andrew Morton wrote:
> > Andy, I'm looking at the power4 build:
> > 
> > http://test.kernel.org/abat/84751/debug/test.log.0
> > 
> > which has
> > 
> >   LD      init/built-in.o
> >   LD      .tmp_vmlinux1
> > init/built-in.o(.init.text+0x32e4): In function `.rd_load_image':
> > : undefined reference to `.__kmalloc_size_too_large'
> > fs/built-in.o(.text+0xa60f0): In function `.ext3_fill_super':
> > : undefined reference to `.__kmalloc_size_too_large'
> > fs/built-in.o(.text+0xbe934): In function `.ext2_fill_super':
> > : undefined reference to `.__kmalloc_size_too_large'
> > fs/built-in.o(.text+0xf3370): In function `.nfs4_proc_lookup':
> > 
> > something has gone stupid with kmalloc there, and I cannot reproduce it
> > with my compiler and with your (very old) .config at
> > http://ftp.kernel.org/pub/linux/kernel/people/mbligh/config/abat/power4
> > 
> > So I'm a bit stumped.  Does autotest just do `yes "" | make oldconfig' or
> > what?  When I do that, I get SLUB, but no compile errors.
> > 
> > And do you know what compiler version is being used there?
> 
> include/linux/slub_def.h:
> 
> static inline struct kmem_cache *kmalloc_slab(size_t size)
> {
>         int index = kmalloc_index(size);
> 
>         if (index == 0)
>                 return NULL;
> 
>         if (index < 0) {
>                 /*
>                  * Generate a link failure. Would be great if we could
>                  * do something to stop the compile here.
>                  */
>                 extern void __kmalloc_size_too_large(void);
>                 __kmalloc_size_too_large();
>         }
>         return &kmalloc_caches[index];
> }
> 
> hmm.. 
> 
> gcc version 3.3.3 -- generates those link failures
> gcc version 4.1.0 -- doesn't generate this error

My power box is 3.4.4 and it doesn't do that either.  I guess it's just a
gcc buglet.

Poor Christoph ;)

I wonder why slab doesn't hit that problem.

I wonder whether slub should use kmalloc-sizes.h.

--
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>

  reply	other threads:[~2007-04-25  1:22 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24 20:06 Andrew Morton
2007-04-24 20:21 ` Christoph Lameter
2007-04-24 20:27   ` Andrew Morton
2007-04-24 20:32     ` Christoph Lameter
2007-04-24 20:43       ` Andrew Morton
2007-04-24 20:52         ` Christoph Lameter
2007-04-24 21:12           ` Andy Whitcroft
2007-04-24 21:18           ` Andrew Morton
2007-04-24 21:30             ` Christoph Lameter
2007-04-24 21:36               ` Andrew Morton
2007-04-24 21:46                 ` Andy Whitcroft
2007-04-25  0:16                   ` Andy Whitcroft
2007-04-25  0:34                     ` Badari Pulavarty
2007-04-25  0:44                       ` Andy Whitcroft
2007-04-25  1:03                         ` Badari Pulavarty
2007-04-25  6:39                       ` Christoph Lameter
2007-04-25  8:21                         ` Andy Whitcroft
2007-04-25  8:40                           ` Andrew Morton
2007-04-25 15:15                             ` Christoph Lameter
2007-04-24 21:53                 ` Christoph Lameter
2007-04-24 22:27 ` Badari Pulavarty
2007-04-24 22:51   ` Andrew Morton
2007-04-24 23:32     ` Andy Whitcroft
2007-04-25  0:07       ` Andy Whitcroft
2007-04-25  0:51     ` Badari Pulavarty
2007-04-25  1:22       ` Andrew Morton [this message]
2007-04-25  6:23         ` Christoph Lameter
2007-04-25  6:38           ` Andrew Morton
2007-04-25  6:58         ` Christoph Lameter
2007-04-25  6:21       ` Christoph Lameter
2007-04-24 23:59 ` Badari Pulavarty
2007-04-25  1:26   ` Andrew Morton

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=20070424182212.bbe76894.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=apw@shadowen.org \
    --cc=clameter@sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=pbadari@gmail.com \
    /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