linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] slub: nr_slabs is an atomic_long_t
@ 2007-10-29  2:15 Stephen Rothwell
  2007-10-29  2:53 ` Christoph Lameter
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2007-10-29  2:15 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux-mm, LKML

so shouldn't be passed to atomic_read.

mm/slub.c: In function 'slab_mem_offline_callback':
mm/slub.c:2737: warning: passing argument 1 of 'atomic_read' from incompatible pointer type
mm/slub.c:2737: warning: passing argument 1 of 'atomic_read' from incompatible pointer type
mm/slub.c:2737: warning: passing argument 1 of 'atomic_read' from incompatible pointer type

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 mm/slub.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Seen on PowerPC allyesconfig build.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --git a/mm/slub.c b/mm/slub.c
index aac1dd3..bcdb2c8 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2734,7 +2734,7 @@ static void slab_mem_offline_callback(void *arg)
 			 * and offline_pages() function shoudn't call this
 			 * callback. So, we must fail.
 			 */
-			BUG_ON(atomic_read(&n->nr_slabs));
+			BUG_ON(atomic_long_read(&n->nr_slabs));
 
 			s->node[offline_node] = NULL;
 			kmem_cache_free(kmalloc_caches, n);
-- 
1.5.3.4

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] slub: nr_slabs is an atomic_long_t
  2007-10-29  2:15 [PATCH] slub: nr_slabs is an atomic_long_t Stephen Rothwell
@ 2007-10-29  2:53 ` Christoph Lameter
  2007-10-29  3:24   ` Stephen Rothwell
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Lameter @ 2007-10-29  2:53 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-mm, LKML

On Mon, 29 Oct 2007, Stephen Rothwell wrote:

> so shouldn't be passed to atomic_read.

That was already fixed AFAICT.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] slub: nr_slabs is an atomic_long_t
  2007-10-29  2:53 ` Christoph Lameter
@ 2007-10-29  3:24   ` Stephen Rothwell
  2007-10-29  4:56     ` Olof Johansson
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2007-10-29  3:24 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux-mm, LKML

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

On Sun, 28 Oct 2007 19:53:55 -0700 (PDT) Christoph Lameter <clameter@sgi.com> wrote:
>
> That was already fixed AFAICT.

Not in Linus' tree, yet.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] slub: nr_slabs is an atomic_long_t
  2007-10-29  3:24   ` Stephen Rothwell
@ 2007-10-29  4:56     ` Olof Johansson
  0 siblings, 0 replies; 4+ messages in thread
From: Olof Johansson @ 2007-10-29  4:56 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Christoph Lameter, linux-mm, LKML

On Mon, Oct 29, 2007 at 02:24:30PM +1100, Stephen Rothwell wrote:
> On Sun, 28 Oct 2007 19:53:55 -0700 (PDT) Christoph Lameter <clameter@sgi.com> wrote:
> >
> > That was already fixed AFAICT.
> 
> Not in Linus' tree, yet.

Nope, it's still sitting in -mm. Al Viro just posted the same fix too.


-Olof

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-29  4:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29  2:15 [PATCH] slub: nr_slabs is an atomic_long_t Stephen Rothwell
2007-10-29  2:53 ` Christoph Lameter
2007-10-29  3:24   ` Stephen Rothwell
2007-10-29  4:56     ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).