WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [Patch] build pacth for acpi

Hi,

I have the following error today.
Do anyone have the same error?
I tried to write a patch for fix acpi/table.c.
Could anyone check the following patch since I'm not familiar with acpi?

Error is below
=====================================
  CC      crypto/compress.o
  CC      crypto/proc.o
  CC      crypto/md5.o
  CC      crypto/des.o
  LD      crypto/built-in.o
  CC      drivers/acpi/tables.o
drivers/acpi/tables.c: In function `acpi_table_init':
drivers/acpi/tables.c:590: warning: implicit declaration of function 
`__fix_to_virt'
drivers/acpi/tables.c:590: error: `FIX_ACPI_RSDP_PAGE' undeclared (first use in 
this function)
drivers/acpi/tables.c:590: error: (Each undeclared identifier is reported only 
once
drivers/acpi/tables.c:590: error: for each function it appears in.)
make[6]: *** [drivers/acpi/tables.o] Error 1
make[5]: *** [drivers/acpi] Error 2
make[4]: *** [drivers] Error 2
make[4]: Leaving directory `/root/xen-ia64-unstable.hg/linux-2.6.12-xen0'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/root/xen-ia64-unstable.hg'
make[2]: *** [linux-2.6-xen0-install] Error 2
make[2]: Leaving directory `/root/xen-ia64-unstable.hg'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory `/root/xen-ia64-unstable.hg'
make: *** [world] Error 2

=====================================

Patch is below.
=====================================
diff -r bd234c9603ce linux-2.6-xen-sparse/drivers/acpi/tables.c
--- a/linux-2.6-xen-sparse/drivers/acpi/tables.c        Fri Nov 11 19:23:04 2005
+++ b/linux-2.6-xen-sparse/drivers/acpi/tables.c        Wed Nov 16 11:38:24 2005
@@ -565,7 +565,7 @@
  * 
  * result: sdt_entry[] is initialized
  */
-#if CONFIG_XEN
+#if CONFIG_XEN && ! __ia64__
 #define acpi_rsdp_phys_to_va(rsdp_phys) (__fix_to_virt(FIX_ACPI_RSDP_PAGE) + \
                                           (rsdp_phys & ~PAGE_MASK))
 #else

========================================


Best Regards,

Akio Takebe 

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>