Subject: Re: linux-next: build warning after merge of the tip tree

From: Stephen Rothwell <[email-masked]>
Date: Tue, 23 Feb 2010 21:43:56 +1100

Hi,

On Tue, 23 Feb 2010 00:52:25 -0800 Yinghai Lu <[email-masked]> wrote:
> please check

This patch fixes the warnings for me, thanks.

> [PATCH] sparsemem: fix compiling with ppc
> 
> Stephen reported:
> build (powerpc
> ppc64_defconfig) produced these warnings:
> 
> mm/sparse.c: In function 'sparse_init':
> mm/sparse.c:488: warning: unused variable 'map_count'
> mm/sparse.c:484: warning: unused variable 'size2'
> mm/sparse.c:481: warning: unused variable 'map_map'
> mm/sparse.c: At top level:
> mm/sparse.c:442: warning: 'sparse_early_mem_maps_alloc_node' defined but not used
> 
> Introduced by commit 9bdac914240759457175ac0d6529a37d2820bc4d
> ("sparsemem: Put mem map for one node together").
> 
> use macro to fix them
> 
> Reported-by: Stephen Rothwell <[email-masked]>
> Signed-off-by: Yinghai Lu <[email-masked]>

Acked-by: Stephen Rothwell <[email-masked]>

-- 
Cheers,
Stephen Rothwell                    [email-masked]
http://www.canb.auug.org.au/~sfr/