x86/devicetree: add missing early_init_dt_setup_initrd_arch stub
PATCH 1/1 x86/devicetree: add missing early_init_dt_setup_initrd_arch stub
From: Florian Fainelli <[email protected]>
This patch fixes the following build failure:
drivers/built-in.o: In function `early_init_dt_check_for_initrd':/home/florian/dev/kernel/x86/linux-2.6-x86/drivers/of/fdt.c:571:
undefined reference to `early_init_dt_setup_initrd_arch'
make: *** [.tmp_vmlinux1] Error 1
which happens as soon as we enable initrd support on a x86 devicetree platform such as Intel CE4100.
Tested on a custom Intel CE4100 board.
---
Grant,
MIPS, PowerPC, Microblaze and now x86 all have the same way of implementing this, would it rather make sense to get this merged to generic devicetree functions and let this be overriden if needed?
Stable: this is a candidate for 2.6.39.2
arch/x86/kernel/devicetree.c +11 -0
@@ -13,6 +13,7 @@#include <linux/slab.h> #include <linux/pci.h> #include <linux/of_pci.h> +#include <linux/initrd.h> #include <asm/hpet.h> #include <asm/irq_controller.h>
@@ -98,6 +99,16 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)return __alloc_bootmem (size, align,__pa (MAX_DMA_ADDRESS )); } +#ifdef CONFIG_BLK_DEV_INITRD +void __init early_init_dt_setup_initrd_arch (unsigned long start, +unsigned long end) +{ + initrd_start = (unsigned long )__va (start); + initrd_end = (unsigned long )__va (end); + initrd_below_start_ok =1 ; +} +#endif +void __init add_dtb (u64 data) { initial_dtb = data + offsetof(struct setup_data , data);
Signature · 1 line
1.7.4.1
Quoted 9 lines · Florian Fainelli
From: Florian Fainelli <[email protected]>
This patch fixes the following build failure:
drivers/built-in.o: In function `early_init_dt_check_for_initrd':/home/florian/dev/kernel/x86/linux-2.6-x86/drivers/of/fdt.c:571:
undefined reference to `early_init_dt_setup_initrd_arch'
make: *** [.tmp_vmlinux1] Error 1
Quoted 7 lines
which happens as soon as we enable initrd support on a x86 devicetree platform such as Intel CE4100.
Tested on a custom Intel CE4100 board.
Signed-off-by Florian Fainelli <[email protected]>
Quoted 6 lines
---
Grant,MIPS, PowerPC, Microblaze and now x86 all have the same way of implementing this, would it rather make sense to get this merged to generic devicetree functions and let this be overriden if needed?
Probably, but I'm not going to tackle that problem just yet. Although if you want to investigate and propose a patch, then go for it. :-)
g.
Quoted 35 lines
Stable: this is a candidate for 2.6.39.2
arch/x86/kernel/devicetree.c +11
-0@@ -13,6 +13,7 @@#include <linux/slab.h> #include <linux/pci.h> #include <linux/of_pci.h> +#include <linux/initrd.h> #include <asm/hpet.h> #include <asm/irq_controller.h> @@ -98,6 +99,16 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)return __alloc_bootmem (size, align,__pa (MAX_DMA_ADDRESS )); } +#ifdef CONFIG_BLK_DEV_INITRD +void __init early_init_dt_setup_initrd_arch (unsigned long start, +unsigned long end) +{ + initrd_start = (unsigned long )__va (start); + initrd_end = (unsigned long )__va (end); + initrd_below_start_ok =1 ; +} +#endif +void __init add_dtb (u64 data) { initial_dtb = data + offsetof(struct setup_data , data);Signature · 1 line
1.7.4.1
Quoted 13 lines · On Monday 06 June 2011 10:21:31 Grant Likely wrote:
Quoted 12 lines · Florian Fainelli
From: Florian Fainelli <[email protected]>
This patch fixes the following build failure:
drivers/built-in.o: In function `early_init_dt_check_for_initrd':/home/florian/dev/kernel/x86/linux-2.6-x86/drivers/of/fdt.c:571:
undefined reference to `early_init_dt_setup_initrd_arch'
make: *** [.tmp_vmlinux1] Error 1which happens as soon as we enable initrd support on a x86 devicetree platform such as Intel CE4100.
Quoted 6 lines
Quoted 4 lines
Tested on a custom Intel CE4100 board.
Signed-off-by Florian Fainelli <[email protected]>Acked-by Grant Likely <[email protected]>
Grant, are you picking this patch to any of your tree?
Quoted 10 lines
Quoted 7 lines
---
Grant,MIPS, PowerPC, Microblaze and now x86 all have the same way of implementing this, would it rather make sense to get this merged to generic devicetree functions and let this be overriden if needed?
Probably, but I'm not going to tackle that problem just yet. Although if you want to investigate and propose a patch, then go for it. :-)
Allright, I will take a look at this.
Quoted 48 lines
g.
Quoted 35 lines
Stable: this is a candidate for 2.6.39.2
arch/x86/kernel/devicetree.c +1
-0@@ -13,6 +13,7 @@#include <linux/slab.h> #include <linux/pci.h> #include <linux/of_pci.h> +#include <linux/initrd.h> #include <
asm/hpet.h>
#include <asm/irq_controller.h>arch/x86/kernel/devicetree.c +10
-0@@ -98,6 +99,16 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)return __alloc_bootmem (size, align,__pa (MAX_DMA_ADDRESS )); } +#ifdef CONFIG_BLK_DEV_INITRD +void __init early_init_dt_setup_initrd_arch (unsigned long start, +unsigned long end) +{ + initrd_start = (unsigned long )__va (start); + initrd_end = (unsigned long )__va (end); + initrd_below_start_ok =1 ; +} +#endif +Quoted 4 lines
void
__initadd_dtb(u64 data)
{
initial_dtb= data +offsetof(struct setup_data, data);--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 14 lines · Florian Fainelli
Quoted 13 lines · On Monday 06 June 2011 10:21:31 Grant Likely wrote:
Quoted 12 lines · Florian Fainelli
From: Florian Fainelli <[email protected]>
This patch fixes the following build failure:
drivers/built-in.o: In function `early_init_dt_check_for_initrd':/home/florian/dev/kernel/x86/linux-2.6-x86/drivers/of/fdt.c:571:
undefined reference to `early_init_dt_setup_initrd_arch'
make: *** [.tmp_vmlinux1] Error 1which happens as soon as we enable initrd support on a x86 devicetree platform such as Intel CE4100.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Tested on a custom Intel CE4100 board.
Signed-off-by Florian Fainelli <[email protected]>Acked-by Grant Likely <[email protected]>Grant, are you picking this patch to any of your tree?
No. This is x86 stuff and should go via the tip tree.
g.
Quoted 63 lines
Quoted 11 lines
Quoted 8 lines
---
Grant,MIPS, PowerPC, Microblaze and now x86 all have the same way of implementing this, would it rather make sense to get this merged to generic devicetree functions and let this be overriden if needed?
Probably, but I'm not going to tackle that problem just yet. Although if you want to investigate and propose a patch, then go for it. :-)
Allright, I will take a look at this.
Quoted 48 lines
g.
Quoted 35 lines
Stable: this is a candidate for 2.6.39.2
arch/x86/kernel/devicetree.c +1
-0@@ -13,6 +13,7 @@ #include <linux/slab.h> #include <linux/pci.h> #include <linux/of_pci.h> +#include <linux/initrd.h> #include <
asm/hpet.h>
#include <asm/irq_controller.h>arch/x86/kernel/devicetree.c +10
-0@@ -98,6 +99,16 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)); } +#ifdef CONFIG_BLK_DEV_INITRD +void __init early_init_dt_setup_initrd_arch (unsigned long start, + unsigned long end) +{ + initrd_start = (unsigned long)__va(start); + initrd_end = (unsigned long)__va(end); + initrd_below_start_ok = 1; +} +#endif +Quoted 4 lines
void
__initadd_dtb(u64 data)
{
initial_dtb= data +offsetof(struct setup_data, data);--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
[tip:x86/urgent] x86: devicetree: Add missing early_init_dt_setup_initrd_arch stub
In reply to Florian FainelliCommit-ID: 977cb76d52e7aa040e18a84b29fe6fd80d79319b Gitweb: http://git.kernel.org/tip/977cb76d52e7aa040e18a84b29fe6fd80d79319b Author: Florian Fainelli <[email protected]> AuthorDate: Mon, 6 Jun 2011 10:15:49 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Thu, 9 Jun 2011 15:39:43 +0200
x86: devicetree: Add missing early_init_dt_setup_initrd_arch stub
This patch fixes the following build failure:
drivers/built-in.o: In function `early_init_dt_check_for_initrd':/home/florian/dev/kernel/x86/linux-2.6-x86/drivers/of/fdt.c:571:
undefined reference to `early_init_dt_setup_initrd_arch'
make: *** [.tmp_vmlinux1] Error 1
which happens as soon as we enable initrd support on a x86 devicetree platform such as Intel CE4100.
--- arch/x86/kernel/devicetree.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
arch/x86/kernel/devicetree.c +11 -0
@@ -13,6 +13,7 @@#include <linux/slab.h> #include <linux/pci.h> #include <linux/of_pci.h> +#include <linux/initrd.h> #include <asm/hpet.h> #include <asm/irq_controller.h>
@@ -98,6 +99,16 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)return __alloc_bootmem (size, align,__pa (MAX_DMA_ADDRESS )); } +#ifdef CONFIG_BLK_DEV_INITRD +void __init early_init_dt_setup_initrd_arch (unsigned long start, +unsigned long end) +{ + initrd_start = (unsigned long )__va (start); + initrd_end = (unsigned long )__va (end); + initrd_below_start_ok =1 ; +} +#endif +void __init add_dtb (u64 data) { initial_dtb = data + offsetof(struct setup_data , data);