Skip to content

Commit

Permalink
ARM: Fix missing includes in kprobes sources
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David A. Long committed Mar 18, 2014
1 parent 09294e3 commit 21254eb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/include/asm/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/kernel/kprobes-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions arch/arm/kernel/kprobes-test-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/system_info.h>

#include "kprobes-test.h"

Expand Down
4 changes: 3 additions & 1 deletion arch/arm/kernel/kprobes-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@
#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"
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 21254eb

Please sign in to comment.