projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0462554
)
kcov: add more missing includes
author
Kefeng Wang
<
[email protected]
>
Wed, 14 Dec 2016 23:05:46 +0000
(15:05 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 15 Dec 2016 00:04:08 +0000
(16:04 -0800)
It is fragile that some definitions acquired via transitive
dependencies, as shown in below:
atomic_* (<linux/atomic.h>)
ENOMEM/EN* (<linux/errno.h>)
EXPORT_SYMBOL (<linux/export.h>)
device_initcall (<linux/init.h>)
preempt_* (<linux/preempt.h>)
Include them to prevent possible issues.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Kefeng Wang <
[email protected]
>
Suggested-by: Mark Rutland <
[email protected]
>
Cc: Dmitry Vyukov <
[email protected]
>
Cc: Andrey Ryabinin <
[email protected]
>
Cc: Mark Rutland <
[email protected]
>
Cc: James Morse <
[email protected]
>
Cc: Kefeng Wang <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/kcov.c
patch
|
blob
|
history
diff --git
a/kernel/kcov.c
b/kernel/kcov.c
index 3cbb0c879705f7a29f1d5bfad58551c098e69432..cc2fa35ca480367fe96430ef23ec7b869974c0e7 100644
(file)
--- a/
kernel/kcov.c
+++ b/
kernel/kcov.c
@@
-1,11
+1,16
@@
#define pr_fmt(fmt) "kcov: " fmt
#define DISABLE_BRANCH_PROFILING
+#include <linux/atomic.h>
#include <linux/compiler.h>
+#include <linux/errno.h>
+#include <linux/export.h>
#include <linux/types.h>
#include <linux/file.h>
#include <linux/fs.h>
+#include <linux/init.h>
#include <linux/mm.h>
+#include <linux/preempt.h>
#include <linux/printk.h>
#include <linux/sched.h>
#include <linux/slab.h>