public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "ALESSANDRO.SUARDI" <ALESSANDRO.SUARDI@oracle.com>
To: felix.seeger@gmx.de, linux-kernel@vger.kernel.org
Subject: Re: 2.5.42 compile error in timers/timer_tsc.c
Date: Sun, 13 Oct 2002 05:11:45 -0800 (GMT-08:00)	[thread overview]
Message-ID: <4649460.1034514705718.JavaMail.nobody@web11.us.oracle.com> (raw)

[-- 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>

             reply	other threads:[~2002-10-13 13:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-13 13:11 ALESSANDRO.SUARDI [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-12 21:59 2.5.42 compile error in timers/timer_tsc.c Felix Seeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4649460.1034514705718.JavaMail.nobody@web11.us.oracle.com \
    --to=alessandro.suardi@oracle.com \
    --cc=felix.seeger@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox