From: Ingo Molnar Date: Sun, 15 Feb 2009 20:18:17 +0000 (+0100) Subject: lockdep: annotate reclaim context (__GFP_NOFS), fix X-Git-Tag: v2.6.30-rc1~216^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6700ec65c207068a81a535e9dca616fefac21671;p=pandora-kernel.git lockdep: annotate reclaim context (__GFP_NOFS), fix Impact: fix build warning Fix: mm/vmscan.c: In function ‘kswapd’: mm/vmscan.c:1969: warning: ISO C90 forbids mixed declarations and code node_to_cpumask_ptr(cpumask, pgdat->node_id), has a side-effect: it defines the 'cpumask' local variable as well, so it has to go into the variable definition section. Sidenote: it might make sense to make this purpose of these macros more apparent, by naming them the standard way, such as: DEFINE_node_to_cpumask_ptr(cpumask, pgdat->node_id); (But that is outside the scope of this patch.) Cc: Rusty Russell Cc: Mike Travis Cc: Andrew Morton Cc: Nick Piggin Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed