ARM: Fix missing includes in kprobes sources
authorDavid A. Long <dave.long@linaro.org>
Thu, 6 Mar 2014 23:17:52 +0000 (18:17 -0500)
committerDavid A. Long <dave.long@linaro.org>
Tue, 18 Mar 2014 20:39:34 +0000 (16:39 -0400)
Make sure includes in ARM kprobes sources are done explicitly. Do not
rely on includes from other includes.

Signed-off-by: David A. Long <dave.long@linaro.org>
Acked-by: Jon Medhurst <tixy@linaro.org>
arch/arm/include/asm/kprobes.h
arch/arm/kernel/kprobes-common.c
arch/arm/kernel/kprobes-test-arm.c
arch/arm/kernel/kprobes-test.c
arch/arm/kernel/kprobes.c

index f82ec22eeb1174a3ba0b431da119868cd8a1d36d..fd2e5caec6ed66237915e06c945d381635fb894f 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <linux/types.h>
 #include <linux/ptrace.h>
-#include <linux/percpu.h>
+#include <linux/notifier.h>
 
 #define __ARCH_WANT_KPROBES_INSN_SLOT
 #define MAX_INSN_SIZE                  2
index 18a76282970e6dfaa414b6f9ff266553258bd27d..455c8003bffb8c44dda83c04f810f5790ceadf01 100644 (file)
@@ -14,6 +14,9 @@
 #include <linux/kernel.h>
 #include <linux/kprobes.h>
 #include <asm/system_info.h>
+#include <linux/types.h>
+#include <linux/stddef.h>
+#include <linux/bug.h>
 
 #include "kprobes.h"
 
index 83931290506704ad226e8a8cb2a15b52a33d4494..87839de77e5f6a0237745cdbc9dd4e57a36fac33 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <asm/system_info.h>
 
 #include "kprobes-test.h"
 
index 0cd63d080c7bf2d93f35db5a69e3debc5147351e..4a774d40c946064c2c462a9e810b9c9bc3d69b5a 100644 (file)
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/kprobes.h>
-
+#include <linux/errno.h>
+#include <linux/stddef.h>
+#include <linux/bug.h>
 #include <asm/opcodes.h>
 
 #include "kprobes.h"
index a7b621ece23d3c729d681e8004952c320215e9fc..54e7b46a329508460428b98e65bcc39136b20b3a 100644 (file)
@@ -27,6 +27,8 @@
 #include <linux/stringify.h>
 #include <asm/traps.h>
 #include <asm/cacheflush.h>
+#include <linux/percpu.h>
+#include <linux/bug.h>
 
 #include "kprobes.h"
 #include "patch.h"