aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-07-02 12:54:14 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-02 12:54:14 -0400
commit47f92418c7916a71c985444100bfe68aed61e247 (patch)
tree83ac22b54bb8569e28769006b137fcd563a6b993
parent4da3064d1775810f10f7ddc1c34c3f1ff502a654 (diff)
parent22c1587adfed1977d26a57ac2831d03e37f8f805 (diff)
Merge tag 'cpuinit-v4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Pull __cpuinit removal from Paul Gortmaker: "Remove __cpuinit macros and users. We removed the __cpuinit stuff in 3.11-rc1 with commit 22f0a2736774 ("init.h: remove __cpuinit sections from the kernel") but we left some no-op stubs as a courtesy to unmerged code. Here we get rid of the stubs as well, since (as can be seen in these changes) they are enabling use cases to sneak back in, primarily from older BSP code that has been living out of tree for some time prior to getting mainlined. So we get rid of these "new" users 1st and then get rid of the stubs. Obviously, getting rid of the stubs can't happen until all the users are gone, so I had to keep this together as a series, even though some of these commits since got picked up into maintainers trees as well. The nature of this change is such that it should have zero impact on the generated runtime. This is one of several independent cleanup branches aimed at enabling better organization in the init.h and module.h code. They have been getting coverage in the linux-next tree for the last month, in addition to my local testing, which also covers approximately a half dozen or more architectures" * tag 'cpuinit-v4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: init: delete the __cpuinit related stubs kernel/cpu.c: remove new instance of __cpuinit that crept back in sched/core: remove __cpuinit section tag that crept back in. mips/mm/tlbex: remove new instance of __cpuinit that crept back in mips/c-r4k: remove legacy __cpuinit section that crept in mips/bcm77xx: remove legacy __cpuinit sections that crept in mips/ath25: remove legacy __cpuinit section that crept in arm/mach-hisi: remove legacy __CPUINIT section that crept in arm/mach-rockchip: remove legacy __cpuinit section that crept in arm/mach-mvebu: remove legacy __cpuinit sections that crept in arm/mach-keystone: remove legacy __cpuinit sections that crept in
-rw-r--r--arch/arm/mach-mvebu/headsmp-a9.S3
-rw-r--r--arch/arm/mach-mvebu/platsmp-a9.c2
-rw-r--r--arch/arm/mach-rockchip/platsmp.c3
-rw-r--r--include/linux/init.h11
-rwxr-xr-xscripts/tags.sh2
5 files changed, 3 insertions, 18 deletions
diff --git a/arch/arm/mach-mvebu/headsmp-a9.S b/arch/arm/mach-mvebu/headsmp-a9.S
index 48e4c4b3cd1c..b093a196e801 100644
--- a/arch/arm/mach-mvebu/headsmp-a9.S
+++ b/arch/arm/mach-mvebu/headsmp-a9.S
@@ -13,12 +13,9 @@
13 */ 13 */
14 14
15#include <linux/linkage.h> 15#include <linux/linkage.h>
16#include <linux/init.h>
17 16
18#include <asm/assembler.h> 17#include <asm/assembler.h>
19 18
20 __CPUINIT
21
22ENTRY(mvebu_cortex_a9_secondary_startup) 19ENTRY(mvebu_cortex_a9_secondary_startup)
23ARM_BE8(setend be) 20ARM_BE8(setend be)
24 bl armada_38x_scu_power_up 21 bl armada_38x_scu_power_up
diff --git a/arch/arm/mach-mvebu/platsmp-a9.c b/arch/arm/mach-mvebu/platsmp-a9.c
index df0a9cc5da59..3d5000481c11 100644
--- a/arch/arm/mach-mvebu/platsmp-a9.c
+++ b/arch/arm/mach-mvebu/platsmp-a9.c
@@ -24,7 +24,7 @@
24 24
25extern void mvebu_cortex_a9_secondary_startup(void); 25extern void mvebu_cortex_a9_secondary_startup(void);
26 26
27static int __cpuinit mvebu_cortex_a9_boot_secondary(unsigned int cpu, 27static int mvebu_cortex_a9_boot_secondary(unsigned int cpu,
28 struct task_struct *idle) 28 struct task_struct *idle)
29{ 29{
30 int ret, hw_cpu; 30 int ret, hw_cpu;
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index 2e6ab67e2284..8fcec1cc101e 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -119,8 +119,7 @@ static int pmu_set_power_domain(int pd, bool on)
119 * Handling of CPU cores 119 * Handling of CPU cores
120 */ 120 */
121 121
122static int __cpuinit rockchip_boot_secondary(unsigned int cpu, 122static int rockchip_boot_secondary(unsigned int cpu, struct task_struct *idle)
123 struct task_struct *idle)
124{ 123{
125 int ret; 124 int ret;
126 125
diff --git a/include/linux/init.h b/include/linux/init.h
index 21b6d768edd7..7c68c36d3fd8 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -91,14 +91,6 @@
91 91
92#define __exit __section(.exit.text) __exitused __cold notrace 92#define __exit __section(.exit.text) __exitused __cold notrace
93 93
94/* temporary, until all users are removed */
95#define __cpuinit
96#define __cpuinitdata
97#define __cpuinitconst
98#define __cpuexit
99#define __cpuexitdata
100#define __cpuexitconst
101
102/* Used for MEMORY_HOTPLUG */ 94/* Used for MEMORY_HOTPLUG */
103#define __meminit __section(.meminit.text) __cold notrace 95#define __meminit __section(.meminit.text) __cold notrace
104#define __meminitdata __section(.meminit.data) 96#define __meminitdata __section(.meminit.data)
@@ -116,9 +108,6 @@
116#define __INITRODATA .section ".init.rodata","a",%progbits 108#define __INITRODATA .section ".init.rodata","a",%progbits
117#define __FINITDATA .previous 109#define __FINITDATA .previous
118 110
119/* temporary, until all users are removed */
120#define __CPUINIT
121
122#define __MEMINIT .section ".meminit.text", "ax" 111#define __MEMINIT .section ".meminit.text", "ax"
123#define __MEMINITDATA .section ".meminit.data", "aw" 112#define __MEMINITDATA .section ".meminit.data", "aw"
124#define __MEMINITRODATA .section ".meminit.rodata", "a" 113#define __MEMINITRODATA .section ".meminit.rodata", "a"
diff --git a/scripts/tags.sh b/scripts/tags.sh
index cdb491d84503..c0a932dff329 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -154,7 +154,7 @@ exuberant()
154{ 154{
155 all_target_sources | xargs $1 -a \ 155 all_target_sources | xargs $1 -a \
156 -I __initdata,__exitdata,__initconst, \ 156 -I __initdata,__exitdata,__initconst, \
157 -I __cpuinitdata,__initdata_memblock \ 157 -I __initdata_memblock \
158 -I __refdata,__attribute,__maybe_unused,__always_unused \ 158 -I __refdata,__attribute,__maybe_unused,__always_unused \
159 -I __acquires,__releases,__deprecated \ 159 -I __acquires,__releases,__deprecated \
160 -I __read_mostly,__aligned,____cacheline_aligned \ 160 -I __read_mostly,__aligned,____cacheline_aligned \