Re: compile error for Opteron CPU with kernel 2.6.0-test2

Andrew Morton
2003-08-01T04:20:21Z

Michael Bakos <bakhos@msi.umn.edu> wrote:
>
> that patch did fix the cpumask_t problem, however another one is present
>
> CC arch/x86_64/kernel/mpparse.o
> arch/x86_64/kernel/mpparse.c: In function `mp_parse_prt':
> arch/x86_64/kernel/mpparse.c:899: error: too few arguments to function
> `acpi_pci_link_get_irq'
> make[1]: *** [arch/x86_64/kernel/mpparse.o] Error 1
> make: *** [arch/x86_64/kernel] Error 2

OK, I'd be doing this:

arch/x86_64/kernel/mpparse.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN arch/x86_64/kernel/mpparse.c~nforce2-acpi-fixes-fix arch/x86_64/kernel/mpparse.c
--- 25/arch/x86_64/kernel/mpparse.c~nforce2-acpi-fixes-fix 2003-07-31 21:18:45.000000000 -0700
+++ 25-akpm/arch/x86_64/kernel/mpparse.c 2003-07-31 21:18:59.000000000 -0700
@@ -896,7 +896,8 @@ void __init mp_parse_prt (void)

/* Need to get irq for dynamic entry */
if (entry->link.handle) {
- irq = acpi_pci_link_get_irq(entry->link.handle, entry->link.index);
+ irq = acpi_pci_link_get_irq(entry->link.handle,
+ entry->link.index, NULL, NULL);
if (!irq)
continue;
}

_