From: Christoph Lameter <clameter@sgi.com>
To: Badari Pulavarty <pbadari@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-mm <linux-mm@kvack.org>, Andy Whitcroft <apw@shadowen.org>
Subject: Re: 2.6.21-rc7-mm1 on test.kernel.org
Date: Tue, 24 Apr 2007 23:21:58 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0704242321310.21125@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <1177462288.1281.11.camel@dyn9047017100.beaverton.ibm.com>
On Tue, 24 Apr 2007, Badari Pulavarty wrote:
> 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
Likely an issue with constant folding.
--
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>
next prev parent reply other threads:[~2007-04-25 6:21 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
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 [this message]
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=Pine.LNX.4.64.0704242321310.21125@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=akpm@linux-foundation.org \
--cc=apw@shadowen.org \
--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