From: Andrew Morton We still need the param.h include. > From: Reynes Philippe > To: Andrew Morton > Subject: [PATCH] [MM] include param.h in rcupreempt.h if CONFIG_NO_HZ is set > Date: Sun, 30 Mar 2008 18:55:39 +0200 (CEST) > > The file rcupreempt.h needs HZ if CONFIG_NO_HZ is set. But HZ is defined > in include/linux/param.h, and this file isn't included. So the compilation fails with > this error : > > CC init/main.o > In file included from include/linux/rcupdate.h:57, > from include/linux/rculist.h:10, > from include/linux/dcache.h:6, > from include/linux/fs.h:278, > from include/linux/proc_fs.h:5, > from init/main.c:14: > include/linux/rcupreempt.h: In function rcu_enter_nohz: > include/linux/rcupreempt.h:90: erreur: HZ undeclared (first use in this function) > include/linux/rcupreempt.h:90: erreur: (Each undeclared identifier is reported only once > include/linux/rcupreempt.h:90: erreur: for each function it appears in.) > include/linux/rcupreempt.h: In function rcu_exit_nohz: > include/linux/rcupreempt.h:97: erreur: HZ undeclared (first use in this function) Cc: Dave Young Cc: Johannes Weiner Cc: Paul E. McKenney Cc: Reynes Philippe Signed-off-by: Andrew Morton --- include/asm-generic/bug.h | 1 + 1 file changed, 1 insertion(+) diff -puN include/asm-generic/bug.h~add-warn_on_secs-macro-simplification-fix-fix include/asm-generic/bug.h --- a/include/asm-generic/bug.h~add-warn_on_secs-macro-simplification-fix-fix +++ a/include/asm-generic/bug.h @@ -2,6 +2,7 @@ #define _ASM_GENERIC_BUG_H #include +#include #ifdef CONFIG_BUG _