diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-01-20 18:35:53 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-02-29 17:15:08 -0500 |
commit | 50af5ead3b44ccf8bd2b4d2a50c1b610f557c480 (patch) | |
tree | e53d8e0b0bd2cf2134e48d3441b91ac41c6c3721 /lib | |
parent | b116ee4d772565d204db057a10fcd81d7a2513a8 (diff) |
bug.h: add include of it to various implicit C users
With bug.h currently living right in linux/kernel.h there
are files that use BUG_ON and friends but are not including
the header explicitly. Fix them up so we can remove the
presence in kernel.h file.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/atomic64_test.c | 1 | ||||
-rw-r--r-- | lib/bitmap.c | 1 | ||||
-rw-r--r-- | lib/iommu-helper.c | 1 | ||||
-rw-r--r-- | lib/list_debug.c | 1 | ||||
-rw-r--r-- | lib/plist.c | 1 | ||||
-rw-r--r-- | lib/string.c | 1 | ||||
-rw-r--r-- | lib/timerqueue.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/lib/atomic64_test.c b/lib/atomic64_test.c index 0c33cde2a1e6..cb99b91c3a1d 100644 --- a/lib/atomic64_test.c +++ b/lib/atomic64_test.c | |||
@@ -9,6 +9,7 @@ | |||
9 | * (at your option) any later version. | 9 | * (at your option) any later version. |
10 | */ | 10 | */ |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/bug.h> | ||
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
13 | #include <linux/atomic.h> | 14 | #include <linux/atomic.h> |
14 | 15 | ||
diff --git a/lib/bitmap.c b/lib/bitmap.c index 0d4a127dd9b3..90a683b34075 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/errno.h> | 10 | #include <linux/errno.h> |
11 | #include <linux/bitmap.h> | 11 | #include <linux/bitmap.h> |
12 | #include <linux/bitops.h> | 12 | #include <linux/bitops.h> |
13 | #include <linux/bug.h> | ||
13 | #include <asm/uaccess.h> | 14 | #include <asm/uaccess.h> |
14 | 15 | ||
15 | /* | 16 | /* |
diff --git a/lib/iommu-helper.c b/lib/iommu-helper.c index da053313ee5c..8b1ab6222562 100644 --- a/lib/iommu-helper.c +++ b/lib/iommu-helper.c | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | #include <linux/module.h> | 5 | #include <linux/module.h> |
6 | #include <linux/bitmap.h> | 6 | #include <linux/bitmap.h> |
7 | #include <linux/bug.h> | ||
7 | 8 | ||
8 | int iommu_is_span_boundary(unsigned int index, unsigned int nr, | 9 | int iommu_is_span_boundary(unsigned int index, unsigned int nr, |
9 | unsigned long shift, | 10 | unsigned long shift, |
diff --git a/lib/list_debug.c b/lib/list_debug.c index 7204e619a4c1..1bf2fe36f813 100644 --- a/lib/list_debug.c +++ b/lib/list_debug.c | |||
@@ -8,6 +8,7 @@ | |||
8 | 8 | ||
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <linux/list.h> | 10 | #include <linux/list.h> |
11 | #include <linux/bug.h> | ||
11 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
12 | 13 | ||
13 | /* | 14 | /* |
diff --git a/lib/plist.c b/lib/plist.c index a0a4da489c22..6ab0e521c48b 100644 --- a/lib/plist.c +++ b/lib/plist.c | |||
@@ -23,6 +23,7 @@ | |||
23 | * information. | 23 | * information. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/bug.h> | ||
26 | #include <linux/plist.h> | 27 | #include <linux/plist.h> |
27 | #include <linux/spinlock.h> | 28 | #include <linux/spinlock.h> |
28 | 29 | ||
diff --git a/lib/string.c b/lib/string.c index dc4a86341f91..0573a20df9a6 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/types.h> | 22 | #include <linux/types.h> |
23 | #include <linux/string.h> | 23 | #include <linux/string.h> |
24 | #include <linux/ctype.h> | 24 | #include <linux/ctype.h> |
25 | #include <linux/bug.h> | ||
25 | #include <linux/module.h> | 26 | #include <linux/module.h> |
26 | 27 | ||
27 | #ifndef __HAVE_ARCH_STRNICMP | 28 | #ifndef __HAVE_ARCH_STRNICMP |
diff --git a/lib/timerqueue.c b/lib/timerqueue.c index 191176a43e9a..14c640355eb1 100644 --- a/lib/timerqueue.c +++ b/lib/timerqueue.c | |||
@@ -22,6 +22,7 @@ | |||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <linux/bug.h> | ||
25 | #include <linux/timerqueue.h> | 26 | #include <linux/timerqueue.h> |
26 | #include <linux/rbtree.h> | 27 | #include <linux/rbtree.h> |
27 | #include <linux/module.h> | 28 | #include <linux/module.h> |