Hi,

Chen, Kenneth W wrote:
Using my favorite .config file, it happens that all the hotplug
options are off and the kernel doesn't build.

  LD      .tmp_vmlinux1
arch/ia64/kernel/built-in.o(.text+0x712): In function `acpi_unregister_ioapic':
: undefined reference to `iosapic_remove'
make: *** [.tmp_vmlinux1] Error 1

grep HOT .config
# CONFIG_HOTPLUG is not set
# CONFIG_HOTPLUG_CPU is not set
# CONFIG_HOTPLUG_PCI is not set


I think the following patch will remove this compile error.
Could you try this? or could you send me your .config?
Unfortunately, I don't have the .config in which
CONFIG_HOTPLUG is not set.

Thanks,
Kenji Kaneshige
---

This patch removes the following stupid compile error that happens
when CONFIG_HOTPLUG is not defined on ia64.

    LD      .tmp_vmlinux1
    arch/ia64/kernel/built-in.o(.text+0x712): In function 
`acpi_unregister_ioapic':
    : undefined reference to `iosapic_remove'
    make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Kenji Kaneshige <[EMAIL PROTECTED]>
---

include/asm-ia64/iosapic.h |    4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN 
include/asm-ia64/iosapic.h~fix-compile-error-acpi_unregister_ioapic-ia64 
include/asm-ia64/iosapic.h
--- 
linux-2.6.13-rc6/include/asm-ia64/iosapic.h~fix-compile-error-acpi_unregister_ioapic-ia64
   2005-08-10 18:02:44.000000000 +0900
+++ linux-2.6.13-rc6-kanesige/include/asm-ia64/iosapic.h        2005-08-10 
18:35:33.000000000 +0900
@@ -75,6 +75,8 @@ extern int __devinit iosapic_init (unsig
                                    unsigned int gsi_base);
#ifdef CONFIG_HOTPLUG
extern int iosapic_remove (unsigned int gsi_base);
+#else
+#define iosapic_remove(gsi_base)                               (-EINVAL)
#endif /* CONFIG_HOTPLUG */
extern int gsi_to_vector (unsigned int gsi);
extern int gsi_to_irq (unsigned int gsi);
@@ -102,9 +104,7 @@ extern void __devinit map_iosapic_to_nod
#else
#define iosapic_system_init(pcat_compat)                        do { } while (0)
#define iosapic_init(address,gsi_base)                          (-EINVAL)
-#ifdef CONFIG_HOTPLUG
#define iosapic_remove(gsi_base)                                (-ENODEV)
-#endif /* CONFIG_HOTPLUG */
#define iosapic_register_intr(gsi,polarity,trigger)             (gsi)
#define iosapic_unregister_intr(irq)                            do { } while (0)
#define iosapic_override_isa_irq(isa_irq,gsi,polarity,trigger)  do { } while (0)
_
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to