Commit b116ee4d772565d204db057a10fcd81d7a2513a8

Authored by Paul Gortmaker
1 parent 4ebc1b4b00

lib: fix implicit users of kernel.h for TAINT_WARN

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>

Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -7,6 +7,7 @@
7 7  
8 8 #include <linux/module.h>
9 9 #include <linux/average.h>
  10 +#include <linux/kernel.h>
10 11 #include <linux/bug.h>
11 12 #include <linux/log2.h>
12 13  
... ... @@ -8,6 +8,7 @@
8 8  
9 9 #include <linux/module.h>
10 10 #include <linux/list.h>
  11 +#include <linux/kernel.h>
11 12  
12 13 /*
13 14 * Insert a new entry between two known consecutive entries.