]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel: fix two implicit header assumptions in irq_work.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 18 Jul 2011 17:03:04 +0000 (13:03 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 25 Aug 2011 17:54:30 +0000 (13:54 -0400)
commitb59f64c117e21fe6f1785350b04eefe4a0135f48
tree0d5443945b4adb9d6a5edb901bf7d1c313a083cc
parent50f8eb4dd62107c2afaeda1a0808e56a30249c7d
kernel: fix two implicit header assumptions in irq_work.c

Up until now, this file was getting percpu.h because nearly every
file was implicitly getting module.h (and all its sub-includes).
But we want to clean that up, so call out percpu.h explicitly.
Otherwise we'll get things like this on an ARM build:

kernel/irq_work.c:48: error: expected declaration specifiers or '...' before 'irq_work_list'
kernel/irq_work.c:48: warning: type defaults to 'int' in declaration of 'DEFINE_PER_CPU'

The same thing was happening for builds on ARM for asm/processor.h

kernel/irq_work.c: In function 'irq_work_sync':
kernel/irq_work.c:166: error: implicit declaration of function 'cpu_relax'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/irq_work.c