Skip to contentSkip to conversation

arm64: delete non-required instances of <linux/init.h>

PATCH In review Paul Gortmaker 2 participants 3 messages Jan 23, 2014 – Jan 24, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc linux-arm-kernel at lists.infradead.org

---

[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
index 9400596a0f39..c4a14de68523 100644
@@ -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
index fd3993cb060f..e1a39fcf2433 100644
@@ -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
index 39ac630d83de..3d255b05c48a 100644
@@ -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
index 0959611d9ff1..066d366cc850 100644
@@ -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
index 248a15db37f2..1e5a17811648 100644
@@ -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
index 6a8928bba03c..8bde301f926f 100644
@@ -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
index 44c22805d2e2..56a82775c612 100644
@@ -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
index 60c1db54b41a..662e53dbbb60 100644
@@ -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
index dad4ec9bbfd1..11030dab2dc6 100644
@@ -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
index 48a386094fa3..035a5a837287 100644
@@ -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
index bed1f1de1caf..18a5f10417fd 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Paul Gortmaker

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.

Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
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.

#2 lore raw
Quoted 12 lines · Catalin Marinas
Quoted 11 lines · Paul Gortmaker

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.

Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc linux-arm-kernel at lists.infradead.org

---

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