linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@sgi.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Badari Pulavarty <pbadari@gmail.com>,
	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:58:38 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0704242351300.21398@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <20070424182212.bbe76894.akpm@linux-foundation.org>

On Tue, 24 Apr 2007, Andrew Morton wrote:

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

Builds fine here with gcc 3.3 on x86_64. Maybe a problem with the arch 
specific backend? Maybe it does not inline by default?

Does forcing inlining fix the problem?

Index: linux-2.6.21-rc7/include/linux/slub_def.h
===================================================================
--- linux-2.6.21-rc7.orig/include/linux/slub_def.h	2007-04-24 23:50:27.000000000 -0700
+++ linux-2.6.21-rc7/include/linux/slub_def.h	2007-04-24 23:51:08.000000000 -0700
@@ -84,7 +84,7 @@ extern struct kmem_cache kmalloc_caches[
  * Sorry that the following has to be that ugly but some versions of GCC
  * have trouble with constant propagation and loops.
  */
-static inline int kmalloc_index(int size)
+static __always_inline int kmalloc_index(int size)
 {
 	if (size == 0)
 		return 0;
 

--
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-04-25  6:58 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 [this message]
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=Pine.LNX.4.64.0704242351300.21398@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