Skip to content

Commit

Permalink
lib: fix implicit users of kernel.h for TAINT_WARN
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Paul Gortmaker committed Feb 28, 2012
1 parent 4ebc1b4 commit b116ee4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/average.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <linux/module.h>
#include <linux/average.h>
#include <linux/kernel.h>
#include <linux/bug.h>
#include <linux/log2.h>

Expand Down
1 change: 1 addition & 0 deletions lib/list_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b116ee4

Please sign in to comment.