mips: migrate exception table users off module.h and onto extable.h
PATCH 1/1 mips: 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.
In the case of traps.c we can't dump the module.h include since it is also used to provide "print_modules".
Cc Ralf Baechle <[email protected]>
Signed-off-by Paul Gortmaker <[email protected]>
---
[see: https://lkml.org/lkml/2016/7/24/224 for additional context if needed]
arch/mips/kernel/module.c | 1 + arch/mips/kernel/traps.c | 1 + arch/mips/mm/extable.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-)
arch/mips/kernel/module.c +1 -0
@@ -20,6 +20,7 @@#undef DEBUG +#include <linux/extable.h> #include <linux/moduleloader.h> #include <linux/elf.h> #include <linux/mm.h>
arch/mips/kernel/traps.c +1 -0
@@ -21,6 +21,7 @@#include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> +#include <linux/extable.h> #include <linux/mm.h> #include <linux/sched.h> #include <linux/smp.h>
arch/mips/mm/extable.c +1 -1
@@ -5,7 +5,7 @@* * Copyright (C) 1997, 99, 2001 - 2004 Ralf Baechle <[email protected]> */ -#include <linux/module.h> +#include <linux/extable.h> #include <linux/spinlock.h> #include <asm/branch.h> #include <asm/uaccess.h>
Signature · 1 line
2.8.4