lib: fix implicit users of kernel.h for TAINT_WARN
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 20 Jan 2012 23:46:49 +0000 (18:46 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 28 Feb 2012 22:49:27 +0000 (17:49 -0500)
A pending header cleanup will cause this to show up as:

lib/average.c:38: error: 'TAINT_WARN' undeclared (first use in this function)
lib/list_debug.c:24: error: 'TAINT_WARN' undeclared (first use in this function)

and TAINT_WARN comes from include/linux/kernel.h file.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
lib/average.c
lib/list_debug.c

index 5576c28414968a1d384913885bfa8c3e5cd2b1c9..57c38c6e39cd71228296260c4c05a0531dd8f046 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/module.h>
 #include <linux/average.h>
+#include <linux/kernel.h>
 #include <linux/bug.h>
 #include <linux/log2.h>
 
index b8029a5583ff669f09d3debf27ef442412d8211c..7204e619a4c1565b88bd498c2178f4627885310a 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/module.h>
 #include <linux/list.h>
+#include <linux/kernel.h>
 
 /*
  * Insert a new entry between two known consecutive entries.