2.6.7-mm2 build errors...
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xbe14): In function `powernow_acpi_init':
: undefined reference to acpi_processor_register_performance' arch/i386/kernel/built-in.o(.text+0xbe3b): In function powernow_acpi_init':
: undefined reference to acpi_processor_unregister_performance' arch/i386/kernel/built-in.o(.exit.text+0x3b): In function powernow_exit':
: undefined reference to `acpi_processor_unregister_performance'
make: *** [.tmp_vmlinux1] Error 1
This also happens in 2.6.7-mm1, I'm wondering if this is my fault or something's wrong?
Thanks in advance!
JC
PS: Please CC me for any answer.
Quoted 11 lines · limaunion
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xbe14): In function `powernow_acpi_init':
: undefined reference toacpi_processor_register_performance' arch/i386/kernel/built-in.o(.text+0xbe3b): In functionpowernow_acpi_init':
: undefined reference toacpi_processor_unregister_performance' arch/i386/kernel/built-in.o(.exit.text+0x3b): In functionpowernow_exit':
: undefined reference to `acpi_processor_unregister_performance'
make: *** [.tmp_vmlinux1] Error 1This also happens in 2.6.7-mm1, I'm wondering if this is my fault or something's wrong?
It seems something is/was wrong.
Can you still reproduce it in 2.6.7-mm5?
If yes, please send your .config.
Quoted 2 lines
Thanks in advance!
JC
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedOn Fri, 2 Jul 2004 22:51:29 +0200 Adrian Bunk wrote:
| On Sat, Jun 26, 2004 at 12:39:39AM -0300, limaunion wrote: | | > LD .tmp_vmlinux1 | > arch/i386/kernel/built-in.o(.text+0xbe14): In function `powernow_acpi_init': | > : undefined reference to `acpi_processor_register_performance' | > arch/i386/kernel/built-in.o(.text+0xbe3b): In function `powernow_acpi_init': | > : undefined reference to `acpi_processor_unregister_performance' | > arch/i386/kernel/built-in.o(.exit.text+0x3b): In function `powernow_exit': | > : undefined reference to `acpi_processor_unregister_performance' | > make: *** [.tmp_vmlinux1] Error 1 | > | > This also happens in 2.6.7-mm1, I'm wondering if this is my fault or | > something's wrong? | | It seems something is/was wrong. | | Can you still reproduce it in 2.6.7-mm5? | If yes, please send your .config.
Same as this problem report:
http://marc.theaimsgroup.com/?l=linux-kernel&m=108752330915120&w=2
but my patch was insufficient:
http://marc.theaimsgroup.com/?l=linux-kernel&m=108753512102539&w=2
See reply from Dave Jones. And I see what he means, but I don't see how to express it in Kconfig language.
--
~Randy
Quoted 21 lines · Randy.Dunlap
On Fri, 2 Jul 2004 22:51:29 +0200 Adrian Bunk wrote:
| On Sat, Jun 26, 2004 at 12:39:39AM -0300, limaunion wrote: | | > LD .tmp_vmlinux1 | > arch/i386/kernel/built-in.o(.text+0xbe14): In function `powernow_acpi_init': | > : undefined reference to `acpi_processor_register_performance' | > arch/i386/kernel/built-in.o(.text+0xbe3b): In function `powernow_acpi_init': | > : undefined reference to `acpi_processor_unregister_performance' | > arch/i386/kernel/built-in.o(.exit.text+0x3b): In function `powernow_exit': | > : undefined reference to `acpi_processor_unregister_performance' | > make: *** [.tmp_vmlinux1] Error 1 | > | > This also happens in 2.6.7-mm1, I'm wondering if this is my fault or | > something's wrong? | | It seems something is/was wrong. | | Can you still reproduce it in 2.6.7-mm5? | If yes, please send your .config.
Quoted 8 lines
Same as this problem report:
http://marc.theaimsgroup.com/?l=linux-kernel&m=108752330915120&w=2but my patch was insufficient:
http://marc.theaimsgroup.com/?l=linux-kernel&m=108753512102539&w=2See reply from Dave Jones. And I see what he means, but I don't see how to express it in
Kconfiglanguage.
What about the patch below?
Quoted 1 line
~Randy
cu
Adrian
Fix compile errors with X86_POWERNOW_K{7,8}=y and ACPI_PROCESSOR=m.
diffstat output:
arch/i386/kernel/cpu/cpufreq/Kconfig | 10 ++++++++++ arch/i386/kernel/cpu/cpufreq/powernow-k7.c | 10 +++++----- arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 4 ++-- arch/i386/kernel/cpu/cpufreq/powernow-k8.h | 2 +- 4 files changed, 18 insertions(+), 8 deletions(-)
arch/i386/kernel/cpu/cpufreq/Kconfig renamed from arch/i386/kernel/cpu/cpufreq/Kconfig.old +10 -0
@@ -88,6 +88,11 @@ If in doubt, say N. +config X86_POWERNOW_K7_ACPI + bool + default y + depends on (X86_POWERNOW_K7=m && ACPI_PROCESSOR) || (X86_POWERNOW_K7=y && ACPI_PROCESSOR=y) + config X86_POWERNOW_K8 tristate "AMD Opteron/Athlon64 PowerNow!" depends on CPU_FREQ && EXPERIMENTAL
@@ -98,6 +103,11 @@ If in doubt, say N. +config X86_POWERNOW_K8_ACPI + bool + default y + depends on (X86_POWERNOW_K8=m && ACPI_PROCESSOR) || (X86_POWERNOW_K8=y && ACPI_PROCESSOR=y) + config X86_GX_SUSPMOD tristate "Cyrix MediaGX/NatSemi Geode Suspend Modulation" depends on CPU_FREQ
arch/i386/kernel/cpu/cpufreq/powernow-k7.c renamed from arch/i386/kernel/cpu/cpufreq/powernow-k7.c.old +5 -5
@@ -29,7 +29,7 @@#include <asm/io.h> #include <asm/system.h> -#if defined(CONFIG_ACPI_PROCESSOR ) || defined(CONFIG_ACPI_PROCESSOR_MODULE ) +#ifdef CONFIG_X86_POWERNOW_K7_ACPI #include <linux/acpi.h> #include <acpi/processor.h> #endif
@@ -64,7 +64,7 @@u8 numpstates; }; -#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE) +#ifdef CONFIG_X86_POWERNOW_K7_ACPI union powernow_acpi_control_t { struct { unsigned long fid:5,
@@ -190,7 +190,7 @@ speed = powernow_table[j].frequency;if ((fid_codes[fid] %10 )==5 ) { -#if defined(CONFIG_ACPI_PROCESSOR ) || defined(CONFIG_ACPI_PROCESSOR_MODULE ) +#ifdef CONFIG_X86_POWERNOW_K7_ACPI if (have_a0 ==1 ) powernow_table[j].frequency =CPUFREQ_ENTRY_INVALID ;#endif
@@ -294,7 +294,7 @@ } -#if defined(CONFIG_ACPI_PROCESSOR ) || defined(CONFIG_ACPI_PROCESSOR_MODULE ) +#ifdef CONFIG_X86_POWERNOW_K7_ACPI struct acpi_processor_performance *acpi_processor_perf;
@@ -668,7 +668,7 @@ static void __exit powernow_exit (void) { -#if defined(CONFIG_ACPI_PROCESSOR ) || defined(CONFIG_ACPI_PROCESSOR_MODULE ) +#ifdef CONFIG_X86_POWERNOW_K7_ACPI if (acpi_processor_perf) {acpi_processor_unregister_performance (acpi_processor_perf,0 );kfree (acpi_processor_perf);
arch/i386/kernel/cpu/cpufreq/powernow-k8.h renamed from arch/i386/kernel/cpu/cpufreq/powernow-k8.h.old +1 -1
@@ -29,7 +29,7 @@* frequency is in kHz */ struct cpufreq_frequency_table *powernow_table; -#if defined(CONFIG_ACPI_PROCESSOR ) || defined(CONFIG_ACPI_PROCESSOR_MODULE ) +#ifdef CONFIG_X86_POWERNOW_K8_ACPI /* the acpi table needs to be kept. it's only available if ACPI was * used to determine valid frequency/vid/fid states */ struct acpi_processor_performance acpi_data;
arch/i386/kernel/cpu/cpufreq/powernow-k8.c renamed from arch/i386/kernel/cpu/cpufreq/powernow-k8.c.old +2 -2
@@ -32,7 +32,7 @@#include <asm/io.h> #include <asm/delay.h> -#if defined(CONFIG_ACPI_PROCESSOR ) || defined(CONFIG_ACPI_PROCESSOR_MODULE ) +#ifdef CONFIG_X86_POWERNOW_K8_ACPI #include <linux/acpi.h> #include <acpi/processor.h> #endif
@@ -664,7 +664,7 @@return -ENODEV ; } -#if defined(CONFIG_ACPI_PROCESSOR ) || defined(CONFIG_ACPI_PROCESSOR_MODULE ) +#ifdef CONFIG_X86_POWERNOW_K8_ACPI static void powernow_k8_acpi_pst_values (struct powernow_k8_data *data,unsigned int index) {if (!data->acpi_data.state_count)
Quoted 7 lines · Adrian Bunk
Quoted 5 lines
but my patch was insufficient:
http://marc.theaimsgroup.com/?l=linux-kernel&m=108753512102539&w=2See reply from Dave Jones. And I see what he means, but I don't see how to express it in
Kconfiglanguage.What about the patch below?
Looks good, I'll give it a test later, and roll it into cpufreq-bk and let it simmer in -mm for a few days. (There's a bunch of other cpufreq bits that have backlogged which I also need to get some testing of).
Dave