arm64: delete non-required instances of <linux/init.h>
Subsystems (3)
PATCH 1/1 arm64: delete non-required instances of <linux/init.h>
None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one place to the next.
---
[Build tested on today's linux-next ; thanks to Will for the pointer
to a prebuilt toolchain. Patch to be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git ]
arch/arm64/include/asm/arch_timer.h | 1 - arch/arm64/kernel/cputable.c | 2 -- arch/arm64/kernel/entry.S | 1 - arch/arm64/kernel/hyp-stub.S | 1 - arch/arm64/kernel/process.c | 1 - arch/arm64/kernel/ptrace.c | 1 - arch/arm64/kernel/smp_spin_table.c | 1 - arch/arm64/kernel/vdso/vdso.S | 1 - arch/arm64/lib/delay.c | 1 - arch/arm64/mm/cache.S | 1 - arch/arm64/mm/proc.S | 1 - 11 files changed, 12 deletions(-)
arch/arm64/include/asm/arch_timer.h +0 -1
@@ -21,7 +21,6 @@#include <asm/barrier.h> -#include <linux/init.h> #include <linux/types.h> #include <clocksource/arm_arch_timer.h>
arch/arm64/kernel/cputable.c +0 -2
@@ -16,8 +16,6 @@* along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/init.h> -#include <asm/cputable.h> extern unsigned long __cpu_setup (void );
arch/arm64/kernel/entry.S +0 -1
@@ -18,7 +18,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/init.h> #include <linux/linkage.h> #include <asm/assembler.h>
arch/arm64/kernel/hyp-stub.S +0 -1
@@ -17,7 +17,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/init.h> #include <linux/linkage.h> #include <asm/assembler.h>
arch/arm64/kernel/process.c +0 -1
@@ -31,7 +31,6 @@#include <linux/reboot.h> #include <linux/interrupt.h> #include <linux/kallsyms.h> -#include <linux/init.h> #include <linux/cpu.h> #include <linux/cpuidle.h> #include <linux/elfcore.h>
arch/arm64/kernel/ptrace.c +0 -1
@@ -26,7 +26,6 @@#include <linux/ptrace.h> #include <linux/user.h> #include <linux/security.h> -#include <linux/init.h> #include <linux/signal.h> #include <linux/uaccess.h> #include <linux/perf_event.h>
arch/arm64/kernel/smp_spin_table.c +0 -1
@@ -17,7 +17,6 @@*/ #include <linux/delay.h> -#include <linux/init.h> #include <linux/of.h> #include <linux/smp.h>
arch/arm64/kernel/vdso/vdso.S +0 -1
@@ -16,7 +16,6 @@ * Author: Will Deacon <[email protected]> */ -#include <linux/init.h> #include <linux/linkage.h> #include <linux/const.h> #include <asm/page.h>
arch/arm64/lib/delay.c +0 -1
@@ -19,7 +19,6 @@*/ #include <linux/delay.h> -#include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/timex.h>
arch/arm64/mm/cache.S +0 -1
@@ -18,7 +18,6 @@ */ #include <linux/linkage.h> -#include <linux/init.h> #include <asm/assembler.h> #include "proc-macros.S"
arch/arm64/mm/proc.S +0 -1
@@ -18,7 +18,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <linux/init.h> #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/asm-offsets.h>
Signature · 1 line
1.8.5.2
Quoted 9 lines · Paul Gortmaker
None of these files are actually using any
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one place to the next.Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>
Quoted 5 lines
---
[Build tested on today's linux-next ; thanks to Will for the pointer
to a prebuilt toolchain. Patch to be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git ]
I assume you are pushing this upstream as part of your cleanup series.
Quoted 12 lines · Catalin Marinas
Quoted 11 lines · Paul Gortmaker
None of these files are actually using any
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one place to the next.Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>---
Quoted 5 lines
Quoted 3 lines
[Build tested on today's linux-next ; thanks to Will for the pointer
to a prebuilt toolchain. Patch to be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git ]I assume you are pushing this upstream as part of your cleanup series.
Yes, that is the plan -- ack added, thanks.
P.
--
Quoted 3 lines
Acked-by Catalin Marinas <[email protected]>