public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.5.42 compile error in timers/timer_tsc.c
@ 2002-10-13 13:11 ALESSANDRO.SUARDI
  0 siblings, 0 replies; 2+ messages in thread
From: ALESSANDRO.SUARDI @ 2002-10-13 13:11 UTC (permalink / raw)
  To: felix.seeger, linux-kernel

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

> Hi
> I get this:
>   gcc -Wp,-MD,arch/i386/kernel/timers/.timer.o.d -D__KERNEL__ -Iinclude -Wall 
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
> -march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include    
> -DKBUILD_BASENAME=timer   -c -o arch/i386/kernel/timers/timer.o 
> arch/i386/kernel/timers/timer.c
>   gcc -Wp,-MD,arch/i386/kernel/timers/.timer_tsc.o.d -D__KERNEL__ -Iinclude 
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
> -march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include    
> -DKBUILD_BASENAME=timer_tsc   -c -o arch/i386/kernel/timers/timer_tsc.o 
> arch/i386/kernel/timers/timer_tsc.c
> arch/i386/kernel/timers/timer_tsc.c: In function `time_cpufreq_notifier':
> arch/i386/kernel/timers/timer_tsc.c:181: `CPUFREQ_PRECHANGE' undeclared (first 
> use in this function)

[snip]

Attached patch (which simply includes<linux/cpufreq.h>) makes it compile. Don't know
 whether it's the Right Fix (TM), so...

--alessandro

[-- Attachment #2: cpufreq.diff --]
[-- Type: application/octet-stream, Size: 255 bytes --]

--- timer_tsc.c.orig	Sun Oct 13 00:43:36 2002
+++ timer_tsc.c	Sun Oct 13 00:43:11 2002
@@ -7,6 +7,7 @@
 #include <linux/init.h>
 #include <linux/timex.h>
 #include <linux/errno.h>
+#include <linux/cpufreq.h>
 
 #include <asm/timer.h>
 #include <asm/io.h>

^ permalink raw reply	[flat|nested] 2+ messages in thread
* 2.5.42 compile error in timers/timer_tsc.c
@ 2002-10-12 21:59 Felix Seeger
  0 siblings, 0 replies; 2+ messages in thread
From: Felix Seeger @ 2002-10-12 21:59 UTC (permalink / raw)
  To: linux-kernel

Hi

I get this:

  gcc -Wp,-MD,arch/i386/kernel/timers/.timer.o.d -D__KERNEL__ -Iinclude -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
-march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include    
-DKBUILD_BASENAME=timer   -c -o arch/i386/kernel/timers/timer.o 
arch/i386/kernel/timers/timer.c
  gcc -Wp,-MD,arch/i386/kernel/timers/.timer_tsc.o.d -D__KERNEL__ -Iinclude 
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
-march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include    
-DKBUILD_BASENAME=timer_tsc   -c -o arch/i386/kernel/timers/timer_tsc.o 
arch/i386/kernel/timers/timer_tsc.c
arch/i386/kernel/timers/timer_tsc.c: In function `time_cpufreq_notifier':
arch/i386/kernel/timers/timer_tsc.c:181: `CPUFREQ_PRECHANGE' undeclared (first 
use in this function)
arch/i386/kernel/timers/timer_tsc.c:181: (Each undeclared identifier is 
reported only once
arch/i386/kernel/timers/timer_tsc.c:181: for each function it appears in.)
arch/i386/kernel/timers/timer_tsc.c:182: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:182: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:183: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:183: `CPUFREQ_ALL_CPUS' undeclared (first 
use in this function)
arch/i386/kernel/timers/timer_tsc.c:183: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:184: warning: implicit declaration of 
function `cpufreq_scale'
arch/i386/kernel/timers/timer_tsc.c:184: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:184: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:185: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:185: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:188: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:188: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:189: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:189: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:192: `CPUFREQ_POSTCHANGE' undeclared 
(first use in this function)
arch/i386/kernel/timers/timer_tsc.c:193: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:193: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:194: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:194: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:195: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:195: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:196: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:196: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:199: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:199: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:200: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:200: dereferencing pointer to incomplete 
type
arch/i386/kernel/timers/timer_tsc.c:184: warning: unreachable code at 
beginning of switch statement
arch/i386/kernel/timers/timer_tsc.c: At top level:
arch/i386/kernel/timers/timer_tsc.c:207: variable 
`time_cpufreq_notifier_block' has initializer but incomplete type
arch/i386/kernel/timers/timer_tsc.c:208: unknown field `notifier_call' 
specified in initializer
arch/i386/kernel/timers/timer_tsc.c:209: warning: excess elements in struct 
initializer
arch/i386/kernel/timers/timer_tsc.c:209: warning: (near initialization for 
`time_cpufreq_notifier_block')
arch/i386/kernel/timers/timer_tsc.c: In function `init_tsc':
arch/i386/kernel/timers/timer_tsc.c:265: warning: implicit declaration of 
function `cpufreq_register_notifier'
arch/i386/kernel/timers/timer_tsc.c:265: `CPUFREQ_TRANSITION_NOTIFIER' 
undeclared (first use in this function)
make[2]: *** [arch/i386/kernel/timers/timer_tsc.o] Error 1
make[1]: *** [arch/i386/kernel/timers] Error 2
make: *** [arch/i386/kernel] Error 2
hal@vaio:~/download/kernel/linux-2.5.42$

thanks
Felix



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-13 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-13 13:11 2.5.42 compile error in timers/timer_tsc.c ALESSANDRO.SUARDI
  -- strict thread matches above, loose matches on Subject: below --
2002-10-12 21:59 Felix Seeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox