All of lore.kernel.org
 help / color / mirror / Atom feed
* APIC / ACPI Build issue
@ 2004-06-03 14:03 gaumer
  0 siblings, 0 replies; only message in thread
From: gaumer @ 2004-06-03 14:03 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]

Excuse my ignorance, I'm new to kernel development.

I've just patched my source with rc2-mm2 and there seems to be a build
issue concerning APIC / ACPI support.

The error:

  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xdaca): In function `acpi_register_gsi':
: undefined reference to `mp_register_gsi'
make[1]: *** [.tmp_vmlinux1] Error 1

It seems that in arch/i386/kernel/acpi/boot.c
at line 462 we have:

#ifdef CONFIG_X86_IO_APIC
        if (acpi_irq_model == ACPI_IRQ_MODEL_IOAPIC) {
                mp_register_gsi(gsi, edge_level, active_high_low);
        }
#endif

...yet mp_register_gsi is only defined if:

(line 879 of arch/i386/kernel/mpparse.c)
#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI_INTERPRETER)

So if the .config looks like:

# Power management options (ACPI, APM)
#
# CONFIG_PM is not set
                                                                                                                                                                                   
#
# ACPI (Advanced Configuration and Power Interface) Support
#
# CONFIG_ACPI is not set
CONFIG_ACPI_BOOT=y
                                                                                                                                                                                   
#
# CPU Frequency scaling

With the power management stuff turned off and SMP support enabled the
result is this build error. 

Does CONFIG_ACPI_INTERPRETER have to be defined? If so, then can we
require the definition in arch/i386/kernel/acpi/boot.c as well? This is
not an area I'm familiar with.

The last build I did was on 2.6.6-mm5 and things were okay there (same
config).



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-03 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03 14:03 APIC / ACPI Build issue gaumer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.