diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/kernel/devtree.c | 6 | ||||
-rw-r--r-- | arch/arc/mm/init.c | 5 | ||||
-rw-r--r-- | arch/arm/mm/init.c | 2 | ||||
-rw-r--r-- | arch/arm64/kernel/setup.c | 5 | ||||
-rw-r--r-- | arch/arm64/mm/init.c | 3 | ||||
-rw-r--r-- | arch/c6x/kernel/devicetree.c | 8 | ||||
-rw-r--r-- | arch/metag/mm/init.c | 5 | ||||
-rw-r--r-- | arch/microblaze/kernel/prom.c | 8 | ||||
-rw-r--r-- | arch/mips/kernel/prom.c | 3 | ||||
-rw-r--r-- | arch/openrisc/kernel/prom.c | 8 | ||||
-rw-r--r-- | arch/powerpc/kernel/prom.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/devicetree.c | 3 | ||||
-rw-r--r-- | arch/xtensa/kernel/setup.c | 3 |
13 files changed, 13 insertions, 54 deletions
diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c index bdee3a812052..2340af0e1d6f 100644 --- a/arch/arc/kernel/devtree.c +++ b/arch/arc/kernel/devtree.c | |||
@@ -18,12 +18,6 @@ | |||
18 | #include <asm/clk.h> | 18 | #include <asm/clk.h> |
19 | #include <asm/mach_desc.h> | 19 | #include <asm/mach_desc.h> |
20 | 20 | ||
21 | /* called from unflatten_device_tree() to bootstrap devicetree itself */ | ||
22 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | ||
23 | { | ||
24 | return __va(memblock_alloc(size, align)); | ||
25 | } | ||
26 | |||
27 | /** | 21 | /** |
28 | * setup_machine_fdt - Machine setup when an dtb was passed to the kernel | 22 | * setup_machine_fdt - Machine setup when an dtb was passed to the kernel |
29 | * @dt: virtual address pointer to dt blob | 23 | * @dt: virtual address pointer to dt blob |
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index a08ce7185423..81279ec73a6a 100644 --- a/arch/arc/mm/init.c +++ b/arch/arc/mm/init.c | |||
@@ -127,9 +127,8 @@ void __init free_initrd_mem(unsigned long start, unsigned long end) | |||
127 | #endif | 127 | #endif |
128 | 128 | ||
129 | #ifdef CONFIG_OF_FLATTREE | 129 | #ifdef CONFIG_OF_FLATTREE |
130 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 130 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
131 | unsigned long end) | ||
132 | { | 131 | { |
133 | pr_err("%s(%lx, %lx)\n", __func__, start, end); | 132 | pr_err("%s(%llx, %llx)\n", __func__, start, end); |
134 | } | 133 | } |
135 | #endif /* CONFIG_OF_FLATTREE */ | 134 | #endif /* CONFIG_OF_FLATTREE */ |
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 93cbf566a972..febaee7ca57b 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -78,7 +78,7 @@ static int __init parse_tag_initrd2(const struct tag *tag) | |||
78 | __tagtable(ATAG_INITRD2, parse_tag_initrd2); | 78 | __tagtable(ATAG_INITRD2, parse_tag_initrd2); |
79 | 79 | ||
80 | #ifdef CONFIG_OF_FLATTREE | 80 | #ifdef CONFIG_OF_FLATTREE |
81 | void __init early_init_dt_setup_initrd_arch(unsigned long start, unsigned long end) | 81 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
82 | { | 82 | { |
83 | phys_initrd_start = start; | 83 | phys_initrd_start = start; |
84 | phys_initrd_size = end - start; | 84 | phys_initrd_size = end - start; |
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index bca4c1c2052a..12ad8f3d0cfd 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c | |||
@@ -190,11 +190,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) | |||
190 | memblock_add(base, size); | 190 | memblock_add(base, size); |
191 | } | 191 | } |
192 | 192 | ||
193 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | ||
194 | { | ||
195 | return __va(memblock_alloc(size, align)); | ||
196 | } | ||
197 | |||
198 | /* | 193 | /* |
199 | * Limit the memory size that was specified via FDT. | 194 | * Limit the memory size that was specified via FDT. |
200 | */ | 195 | */ |
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 67e8d7ce3fe7..de2de5db628d 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c | |||
@@ -44,8 +44,7 @@ static unsigned long phys_initrd_size __initdata = 0; | |||
44 | 44 | ||
45 | phys_addr_t memstart_addr __read_mostly = 0; | 45 | phys_addr_t memstart_addr __read_mostly = 0; |
46 | 46 | ||
47 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 47 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
48 | unsigned long end) | ||
49 | { | 48 | { |
50 | phys_initrd_start = start; | 49 | phys_initrd_start = start; |
51 | phys_initrd_size = end - start; | 50 | phys_initrd_size = end - start; |
diff --git a/arch/c6x/kernel/devicetree.c b/arch/c6x/kernel/devicetree.c index bdb56f09d0ac..9e15ab9199b2 100644 --- a/arch/c6x/kernel/devicetree.c +++ b/arch/c6x/kernel/devicetree.c | |||
@@ -33,8 +33,7 @@ void __init early_init_devtree(void *params) | |||
33 | 33 | ||
34 | 34 | ||
35 | #ifdef CONFIG_BLK_DEV_INITRD | 35 | #ifdef CONFIG_BLK_DEV_INITRD |
36 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 36 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
37 | unsigned long end) | ||
38 | { | 37 | { |
39 | initrd_start = (unsigned long)__va(start); | 38 | initrd_start = (unsigned long)__va(start); |
40 | initrd_end = (unsigned long)__va(end); | 39 | initrd_end = (unsigned long)__va(end); |
@@ -46,8 +45,3 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) | |||
46 | { | 45 | { |
47 | c6x_add_memory(base, size); | 46 | c6x_add_memory(base, size); |
48 | } | 47 | } |
49 | |||
50 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | ||
51 | { | ||
52 | return __va(memblock_alloc(size, align)); | ||
53 | } | ||
diff --git a/arch/metag/mm/init.c b/arch/metag/mm/init.c index 28813f164730..123919534b80 100644 --- a/arch/metag/mm/init.c +++ b/arch/metag/mm/init.c | |||
@@ -407,10 +407,9 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
407 | #endif | 407 | #endif |
408 | 408 | ||
409 | #ifdef CONFIG_OF_FLATTREE | 409 | #ifdef CONFIG_OF_FLATTREE |
410 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 410 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
411 | unsigned long end) | ||
412 | { | 411 | { |
413 | pr_err("%s(%lx, %lx)\n", | 412 | pr_err("%s(%llx, %llx)\n", |
414 | __func__, start, end); | 413 | __func__, start, end); |
415 | } | 414 | } |
416 | #endif /* CONFIG_OF_FLATTREE */ | 415 | #endif /* CONFIG_OF_FLATTREE */ |
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 0a2c68f9f9b0..0c4453f134cb 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -46,11 +46,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) | |||
46 | memblock_add(base, size); | 46 | memblock_add(base, size); |
47 | } | 47 | } |
48 | 48 | ||
49 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | ||
50 | { | ||
51 | return __va(memblock_alloc(size, align)); | ||
52 | } | ||
53 | |||
54 | #ifdef CONFIG_EARLY_PRINTK | 49 | #ifdef CONFIG_EARLY_PRINTK |
55 | static char *stdout; | 50 | static char *stdout; |
56 | 51 | ||
@@ -136,8 +131,7 @@ void __init early_init_devtree(void *params) | |||
136 | } | 131 | } |
137 | 132 | ||
138 | #ifdef CONFIG_BLK_DEV_INITRD | 133 | #ifdef CONFIG_BLK_DEV_INITRD |
139 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 134 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
140 | unsigned long end) | ||
141 | { | 135 | { |
142 | initrd_start = (unsigned long)__va(start); | 136 | initrd_start = (unsigned long)__va(start); |
143 | initrd_end = (unsigned long)__va(end); | 137 | initrd_end = (unsigned long)__va(end); |
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 7e954042f252..0fa0b69cdd53 100644 --- a/arch/mips/kernel/prom.c +++ b/arch/mips/kernel/prom.c | |||
@@ -58,8 +58,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | #ifdef CONFIG_BLK_DEV_INITRD | 60 | #ifdef CONFIG_BLK_DEV_INITRD |
61 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 61 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
62 | unsigned long end) | ||
63 | { | 62 | { |
64 | initrd_start = (unsigned long)__va(start); | 63 | initrd_start = (unsigned long)__va(start); |
65 | initrd_end = (unsigned long)__va(end); | 64 | initrd_end = (unsigned long)__va(end); |
diff --git a/arch/openrisc/kernel/prom.c b/arch/openrisc/kernel/prom.c index 5869e3fa5dd3..a63e76872f84 100644 --- a/arch/openrisc/kernel/prom.c +++ b/arch/openrisc/kernel/prom.c | |||
@@ -55,11 +55,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) | |||
55 | memblock_add(base, size); | 55 | memblock_add(base, size); |
56 | } | 56 | } |
57 | 57 | ||
58 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | ||
59 | { | ||
60 | return __va(memblock_alloc(size, align)); | ||
61 | } | ||
62 | |||
63 | void __init early_init_devtree(void *params) | 58 | void __init early_init_devtree(void *params) |
64 | { | 59 | { |
65 | void *alloc; | 60 | void *alloc; |
@@ -96,8 +91,7 @@ void __init early_init_devtree(void *params) | |||
96 | } | 91 | } |
97 | 92 | ||
98 | #ifdef CONFIG_BLK_DEV_INITRD | 93 | #ifdef CONFIG_BLK_DEV_INITRD |
99 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 94 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
100 | unsigned long end) | ||
101 | { | 95 | { |
102 | initrd_start = (unsigned long)__va(start); | 96 | initrd_start = (unsigned long)__va(start); |
103 | initrd_end = (unsigned long)__va(end); | 97 | initrd_end = (unsigned long)__va(end); |
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 6bfcab97c981..b7634ce41dbc 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -546,14 +546,8 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) | |||
546 | memblock_add(base, size); | 546 | memblock_add(base, size); |
547 | } | 547 | } |
548 | 548 | ||
549 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | ||
550 | { | ||
551 | return __va(memblock_alloc(size, align)); | ||
552 | } | ||
553 | |||
554 | #ifdef CONFIG_BLK_DEV_INITRD | 549 | #ifdef CONFIG_BLK_DEV_INITRD |
555 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 550 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
556 | unsigned long end) | ||
557 | { | 551 | { |
558 | initrd_start = (unsigned long)__va(start); | 552 | initrd_start = (unsigned long)__va(start); |
559 | initrd_end = (unsigned long)__va(end); | 553 | initrd_end = (unsigned long)__va(end); |
diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index 69eb2fa25494..376dc7873447 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c | |||
@@ -52,8 +52,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | |||
52 | } | 52 | } |
53 | 53 | ||
54 | #ifdef CONFIG_BLK_DEV_INITRD | 54 | #ifdef CONFIG_BLK_DEV_INITRD |
55 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 55 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
56 | unsigned long end) | ||
57 | { | 56 | { |
58 | initrd_start = (unsigned long)__va(start); | 57 | initrd_start = (unsigned long)__va(start); |
59 | initrd_end = (unsigned long)__va(end); | 58 | initrd_end = (unsigned long)__va(end); |
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 42a8bba0b0ea..101012bc1ff6 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c | |||
@@ -170,8 +170,7 @@ static int __init parse_tag_fdt(const bp_tag_t *tag) | |||
170 | 170 | ||
171 | __tagtable(BP_TAG_FDT, parse_tag_fdt); | 171 | __tagtable(BP_TAG_FDT, parse_tag_fdt); |
172 | 172 | ||
173 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | 173 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) |
174 | unsigned long end) | ||
175 | { | 174 | { |
176 | initrd_start = (void *)__va(start); | 175 | initrd_start = (void *)__va(start); |
177 | initrd_end = (void *)__va(end); | 176 | initrd_end = (void *)__va(end); |