linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bootmem.c: Avoid c90 declaration warning
@ 2009-06-18 20:07 Joe Perches
  2009-06-18 20:24 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Perches @ 2009-06-18 20:07 UTC (permalink / raw)
  To: linux-mm; +Cc: LKML, Andrew Morton

Signed-off-by: Joe Perches <joe@perches.com>

diff --git a/mm/bootmem.c b/mm/bootmem.c
index 282df0a..09d9c98 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -536,11 +536,13 @@ static void * __init alloc_arch_preferred_bootmem(bootmem_data_t *bdata,
 		return kzalloc(size, GFP_NOWAIT);
 
 #ifdef CONFIG_HAVE_ARCH_BOOTMEM
+	{
 	bootmem_data_t *p_bdata;
 
 	p_bdata = bootmem_arch_preferred_node(bdata, size, align, goal, limit);
 	if (p_bdata)
 		return alloc_bootmem_core(p_bdata, size, align, goal, limit);
+	}
 #endif
 	return NULL;
 }


--
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] 5+ messages in thread

end of thread, other threads:[~2009-06-19 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18 20:07 [PATCH] bootmem.c: Avoid c90 declaration warning Joe Perches
2009-06-18 20:24 ` Andrew Morton
2009-06-18 21:57   ` Johannes Weiner
2009-06-19  0:26     ` Yinghai Lu
2009-06-19 16:43       ` Johannes Weiner

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