FS#12864 - acpi-buggy-bios.patch breaks kernel compilation with ACPI_DEBUG enabled
Attached to Project:
Arch Linux
Opened by kludge (kludge) - Tuesday, 20 January 2009, 07:11 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 02 February 2009, 21:28 GMT
Opened by kludge (kludge) - Tuesday, 20 January 2009, 07:11 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 02 February 2009, 21:28 GMT
|
Details
Description:
line 29 of the acpi-buggy-bios.patch (1) invokes ACPI_DB_WARN, which is no longer available in kernel 2.6.28 (2). this patch fixed buggy AMI BIOSes, but is apparently no longer necessary (3). however, the now-incorrect call to ACPI_DB_WARN prevents 2.6.28 patched with linux-2.6.28-3 from compiling. Additional info: (1) http://projects.archlinux.org/?p=linux-2.6-ARCH.git;a=blob;f=patches/acpi-buggy-bios.patch (2) http://groups.google.com/group/linux.kernel/browse_thread/thread/d9b7b2477e184578 (3) http://bugzilla.kernel.org/show_bug.cgi?id=7578#c96 Steps to reproduce: enable ACPI_DEBUG in config and compile kernel 2.6.28-3 patched with linux-2.6.28-3.patch |
This task depends upon
line 29 of (1) reads:
+ ACPI_DEBUG_PRINT((ACPI_DB_WARN, "States [%d] :Wrong processor core frequency %u, set it to 1992\n", j, (u32)pr->performance->states[j].core_frequency));
if it is changed to:
+ ACPI_WARNING((AE_INFO, "States [%d] :Wrong processor core frequency %u, set it to 1992\n", j, (u32)pr->performance->states[j].core_frequency));
the kernel compiles fine.
nb: i'm not 100% this is correct, as i don't have the buggy bios against which to test the fix, and my c/++ is about as weak as it gets. but as far as i can from looking at the function definitions, it should be fine.
http://bugs.archlinux.org/task/6875
Building modules, stage 2.
MODPOST 2084 modules
ERROR: "acpi_ut_warning" [drivers/acpi/processor.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
==> ERROR: Build Failed.
Aborting...
i've opened a thread on the forum looking for advice, as i'm now officially in over my head: http://bbs.archlinux.org/viewtopic.php?id=63560