]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] for_each_cpu_mask() warning fix
authorAndrew Morton <akpm@osdl.org>
Sun, 25 Jun 2006 12:48:10 +0000 (05:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:12 +0000 (10:01 -0700)
commit96545149b09a076bd5d7fe71e83a2ef0d960cf35
treed9c37e52c032f9bbb2da5f55868a79b299e58d25
parent5b1a5492e8a18ce4ec0aeadc565138ac0e55d5bb
[PATCH] for_each_cpu_mask() warning fix

On UP, this:

       cpumask_t mask = node_to_cpumask(numa_node_id());

       for_each_cpu_mask(cpu, mask)

does this:

mm/readahead.c: In function `node_readahead_aging':
mm/readahead.c:850: warning: unused variable `mask'

which is unpleasantly fixed by this:

Acked-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/cpumask.h