[PATCH] Shut up per_cpu_ptr() on UP
authorPaul Mundt <[email protected]>
Mon, 14 Nov 2005 00:07:21 +0000 (16:07 -0800)
committerLinus Torvalds <[email protected]>
Mon, 14 Nov 2005 02:14:15 +0000 (18:14 -0800)
commit66341a905ef5b3e7aea65b5d9bd1b0361b0ccc61
treee993af70651ea563a3d960b2297301ddeb2616bd
parent0f5c79f2920cbc21c718daeb0b12d69acf4de163
[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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/percpu.h