From: Paul Gortmaker Date: Mon, 18 Jul 2011 17:03:04 +0000 (-0400) Subject: kernel: fix two implicit header assumptions in irq_work.c X-Git-Tag: v3.2-rc1~22^2~219 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=967d1f90625ed9c1ab205d3f738fedf9d852e1fd;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 --- diff --git a/kernel/irq_work.c b/kernel/irq_work.c index 3e460ea..c3c46c7 100644 --- a/kernel/irq_work.c +++ b/kernel/irq_work.c @@ -8,7 +8,9 @@ #include #include #include +#include #include +#include /* * An entry can be in one of four states: