Hi, On Tue, 23 Feb 2010 00:52:25 -0800 Yinghai Lu <yinghai@xxxxxxxxxx> 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 <sfr@xxxxxxxxxxxxxxxx> > Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx> Acked-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> -- Cheers, Stephen Rothwell sfr@xxxxxxxxxxxxxxxx http://www.canb.auug.org.au/~sfr/
Attachment:
pgpJpZ2sevuw0.pgp
Description: PGP signature