Skip to content

Commit

Permalink
x86: ptrace.c only needs export.h and not the full module.h
Browse files Browse the repository at this point in the history
Commit cb57a2b ("x86-32: Export
kernel_stack_pointer() for modules") added an include of the
module.h header in conjunction with adding an EXPORT_SYMBOL_GPL
of kernel_stack_pointer.

But module.h should be avoided for simple exports, since it in turn
includes the world.  Swap the module.h for export.h instead.

Cc: Jiri Kosina <trivial@kernel.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Link: http://lkml.kernel.org/r/1360872842-28417-1-git-send-email-paul.gortmaker@windriver.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Paul Gortmaker authored and H. Peter Anvin committed Feb 14, 2013
1 parent 8f170fa commit 19348e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/perf_event.h>
#include <linux/hw_breakpoint.h>
#include <linux/rcupdate.h>
#include <linux/module.h>
#include <linux/export.h>
#include <linux/context_tracking.h>

#include <asm/uaccess.h>
Expand Down

0 comments on commit 19348e7

Please sign in to comment.