From 9e4a632f6ef716c2edaf679ea15c1b329e6c17e6 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 10 Oct 2007 16:55:03 +0000 Subject: [PATCH] minor changes to remove a warning here. (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@504 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/linuxbios_table.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/linuxbios_table.c b/arch/x86/linuxbios_table.c index 502c109e39..72115ef453 100644 --- a/arch/x86/linuxbios_table.c +++ b/arch/x86/linuxbios_table.c @@ -394,13 +394,14 @@ static struct lb_memory *build_lb_mem(struct lb_header *head) struct lb_devtree *lb_devtree(struct lb_header *head) { struct lb_devtree *lbdev = NULL; - struct device *dev = NULL; lbdev = (struct lb_devtree *)lb_new_record(head); lbdev->tag = LB_TAG_DEVTREE_PTR; lbdev->size = sizeof(*lbdev); - lbdev->dev_root_ptr = &dev_root; + lbdev->dev_root_ptr = (u32)&dev_root; // XXX ouch. + // FIXME we should either copy the device tree completely + // or at least mark it reserved. return lbdev; }