Skip to content

Commit c141611

Browse files
Paul Gortmakerozbenh
authored andcommitted
powerpc: Delete non-required instances of include <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 driver to the next. The one instance where we add an include for init.h covers off a case where that file was implicitly getting it from another header which itself didn't need it. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 8fe9c93 commit c141611

46 files changed

Lines changed: 1 addition & 45 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/powerpc/include/asm/paca.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#ifdef CONFIG_PPC64
1818

19-
#include <linux/init.h>
2019
#include <asm/types.h>
2120
#include <asm/lppaca.h>
2221
#include <asm/mmu.h>

‎arch/powerpc/include/asm/ppc_asm.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#ifndef _ASM_POWERPC_PPC_ASM_H
55
#define _ASM_POWERPC_PPC_ASM_H
66

7-
#include <linux/init.h>
87
#include <linux/stringify.h>
98
#include <asm/asm-compat.h>
109
#include <asm/processor.h>

‎arch/powerpc/include/asm/ps3.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#if !defined(_ASM_POWERPC_PS3_H)
2222
#define _ASM_POWERPC_PS3_H
2323

24-
#include <linux/init.h>
2524
#include <linux/types.h>
2625
#include <linux/device.h>
2726
#include <asm/cell-pmu.h>

‎arch/powerpc/include/asm/vio.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define _ASM_POWERPC_VIO_H
1616
#ifdef __KERNEL__
1717

18-
#include <linux/init.h>
1918
#include <linux/errno.h>
2019
#include <linux/device.h>
2120
#include <linux/dma-mapping.h>

‎arch/powerpc/kernel/cacheinfo.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include <linux/cpu.h>
1414
#include <linux/cpumask.h>
15-
#include <linux/init.h>
1615
#include <linux/kernel.h>
1716
#include <linux/kobject.h>
1817
#include <linux/list.h>

‎arch/powerpc/kernel/crash.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/export.h>
1818
#include <linux/crash_dump.h>
1919
#include <linux/delay.h>
20-
#include <linux/init.h>
2120
#include <linux/irq.h>
2221
#include <linux/types.h>
2322

‎arch/powerpc/kernel/eeh_pe.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/delay.h>
2626
#include <linux/export.h>
2727
#include <linux/gfp.h>
28-
#include <linux/init.h>
2928
#include <linux/kernel.h>
3029
#include <linux/pci.h>
3130
#include <linux/string.h>

‎arch/powerpc/kernel/head_64.S‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include <linux/threads.h>
26+
#include <linux/init.h>
2627
#include <asm/reg.h>
2728
#include <asm/page.h>
2829
#include <asm/mmu.h>

‎arch/powerpc/kernel/hw_breakpoint.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <linux/percpu.h>
2929
#include <linux/kernel.h>
3030
#include <linux/sched.h>
31-
#include <linux/init.h>
3231
#include <linux/smp.h>
3332

3433
#include <asm/hw_breakpoint.h>

‎arch/powerpc/kernel/iomap.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*
44
* (C) Copyright 2004 Linus Torvalds
55
*/
6-
#include <linux/init.h>
76
#include <linux/pci.h>
87
#include <linux/mm.h>
98
#include <linux/export.h>

0 commit comments

Comments
 (0)