]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Shut up per_cpu_ptr() on UP
authorPaul Mundt <lethal@linux-sh.org>
Mon, 14 Nov 2005 00:07:21 +0000 (16:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 14 Nov 2005 02:14:15 +0000 (18:14 -0800)
commit7ce8990ef7a39fb73e052391e1cfda294d847539
treee993af70651ea563a3d960b2297301ddeb2616bd
parent0a9c15ac5a3d4c214d47235632f7670e9e973d74
[PATCH] Shut up per_cpu_ptr() on UP

Currently per_cpu_ptr() doesn't really do anything with 'cpu' in the UP
case.  This is problematic in the cases where this is the only place the
variable is referenced:

  CC      kernel/workqueue.o
  kernel/workqueue.c: In function `current_is_keventd':
  kernel/workqueue.c:460: warning: unused variable `cpu'

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/percpu.h