x86: migrate exception table users off module.h and onto extable.h
PATCH 1/1 x86: migrate exception table users off module.h and onto extable.h
These files were only including module.h for exception table related functions. We've now separated that content out into its own file "extable.h" so now move over to that and avoid all the extra header content in module.h that we don't really need to compile these files.
---
[see: https://lkml.org/lkml/2016/7/24/224 for additional context if needed]
arch/x86/kernel/kprobes/core.c | 2 +- arch/x86/kernel/kprobes/opt.c | 2 +- arch/x86/mm/extable.c | 2 +- arch/x86/mm/fault.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/kernel/kprobes/core.c +1 -1
@@ -45,7 +45,7 @@#include <linux/slab.h> #include <linux/hardirq.h> #include <linux/preempt.h> -#include <linux/module.h> +#include <linux/extable.h> #include <linux/kdebug.h> #include <linux/kallsyms.h> #include <linux/ftrace.h>
arch/x86/kernel/kprobes/opt.c +1 -1
@@ -24,7 +24,7 @@#include <linux/slab.h> #include <linux/hardirq.h> #include <linux/preempt.h> -#include <linux/module.h> +#include <linux/extable.h> #include <linux/kdebug.h> #include <linux/kallsyms.h> #include <linux/ftrace.h>
arch/x86/mm/extable.c +1 -1
@@ -1,4 +1,4 @@ -#include <linux/module.h> +#include <linux/extable.h> #include <asm/uaccess.h> #include <asm/traps.h> #include <asm/kdebug.h>
arch/x86/mm/fault.c +1 -1
@@ -5,7 +5,7 @@*/ #include <linux/sched.h> /* test_thread_flag(), ... */ #include <linux/kdebug.h> /* oops_begin/end, ... */ -#include <linux/module.h> /* search_exception_table */ +#include <linux/extable.h> /* search_exception_table */ #include <linux/bootmem.h> /* max_low_pfn */ #include <linux/kprobes.h> /* NOKPROBE_SYMBOL, ... */ #include <linux/mmiotrace.h> /* kmmio_handler, ... */
Signature · 1 line
2.8.4
tip-bot for Paul Gortmaker
merge bot[tip:x86/cleanups] x86: Migrate exception table users off module.h and onto extable.h
x86: Migrate exception table users off module.h and onto extable.h
Commit-ID: 744c193eb9a223ccb2e60500196cf590b3a6131a Gitweb: http://git.kernel.org/tip/744c193eb9a223ccb2e60500196cf590b3a6131a Author: Paul Gortmaker <[email protected]> AuthorDate: Mon, 19 Sep 2016 17:04:18 -0400 Committer: Thomas Gleixner <[email protected]> CommitDate: Tue, 20 Sep 2016 01:05:43 +0200
x86: Migrate exception table users off module.h and onto extable.h
These files were only including module.h for exception table related functions. We've now separated that content out into its own file "extable.h" so now move over to that and avoid all the extra header content in module.h that we don't really need to compile these files.
--- arch/x86/kernel/kprobes/core.c | 2 +- arch/x86/kernel/kprobes/opt.c | 2 +- arch/x86/mm/extable.c | 2 +- arch/x86/mm/fault.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/kernel/kprobes/core.c +1 -1
@@ -45,7 +45,7 @@#include <linux/slab.h> #include <linux/hardirq.h> #include <linux/preempt.h> -#include <linux/module.h> +#include <linux/extable.h> #include <linux/kdebug.h> #include <linux/kallsyms.h> #include <linux/ftrace.h>
arch/x86/kernel/kprobes/opt.c +1 -1
@@ -24,7 +24,7 @@#include <linux/slab.h> #include <linux/hardirq.h> #include <linux/preempt.h> -#include <linux/module.h> +#include <linux/extable.h> #include <linux/kdebug.h> #include <linux/kallsyms.h> #include <linux/ftrace.h>
arch/x86/mm/extable.c +1 -1
@@ -1,4 +1,4 @@ -#include <linux/module.h> +#include <linux/extable.h> #include <asm/uaccess.h> #include <asm/traps.h> #include <asm/kdebug.h>
arch/x86/mm/fault.c +1 -1
@@ -5,7 +5,7 @@*/ #include <linux/sched.h> /* test_thread_flag(), ... */ #include <linux/kdebug.h> /* oops_begin/end, ... */ -#include <linux/module.h> /* search_exception_table */ +#include <linux/extable.h> /* search_exception_table */ #include <linux/bootmem.h> /* max_low_pfn */ #include <linux/kprobes.h> /* NOKPROBE_SYMBOL, ... */ #include <linux/mmiotrace.h> /* kmmio_handler, ... */