From: Peter Lundkvist <p.lundkvist@telia.com>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.7-rc2-mm1: compile error in kernel/exit.c
Date: Tue, 1 Jun 2004 21:35:45 +0200 [thread overview]
Message-ID: <20040601193545.GA2516@debian> (raw)
In-Reply-To: <20040601021539.413a7ad7.akpm@osdl.org>
Hello,
When trying to to build with a non-standard setting of HZ
(to get rid of the noise generated by my Dell Inspiron 4000):
--- linux-2.6.7/include/asm-i386/param.h.org 2004-06-01 20:19:03.000000000 +0200
+++ linux-2.6.7/include/asm-i386/param.h 2004-06-01 20:50:45.000000000 +0200
@@ -5 +5 @@
-# define HZ 1000 /* Internal kernel timer frequency */
+# define HZ 100 /* Internal kernel timer frequency */
I get the following error (with current Debian unstable gcc-3.3):
In file included from kernel/exit.c:18:
include/linux/acct.h:168:2: invalid preprocessing directive #elseif
make[2]: *** [kernel/exit.o] Error 1
make[1]: *** [kernel] Error 2
corrected by this patch:
--- linux-2.6.7/include/linux/acct.h.org 2004-06-01 20:19:07.000000000 +0200
+++ linux-2.6.7/include/linux/acct.h 2004-06-01 19:03:43.000000000 +0200
@@ -166,5 +166,6 @@
#if HZ == AHZ
/* do nothing */
-#elseif (HZ % AHZ)==0
+#else
+#if (HZ % AHZ)==0
do_div(x, HZ / AHZ);
#else
@@ -172,4 +173,5 @@
do_div(x, HZ);
#endif
+#endif
return x;
}
--
Peter Lundkvist
next prev parent reply other threads:[~2004-06-01 19:36 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 9:15 2.6.7-rc2-mm1 Andrew Morton
2004-06-01 9:59 ` 2.6.7-rc2-mm1 Alexander Gran
2004-06-01 11:28 ` 2.6.7-rc2-mm1 AKIYAMA Nobuyuki
2004-06-01 11:39 ` 2.6.7-rc2-mm1 Alexander Gran
2004-06-01 16:07 ` 2.6.7-rc2-mm1 Ari Pollak
2004-06-01 16:22 ` 2.6.7-rc2-mm1 Ari Pollak
2004-06-01 10:00 ` 2.6.7-rc2-mm1 Gabriel Ebner
2004-06-01 11:05 ` 2.6.7-rc2-mm1 Andrey Panin
2004-06-01 13:58 ` 2.6.7-rc2-mm1 Gabriel Ebner
2004-06-01 14:05 ` 2.6.7-rc2-mm1 Jan Killius
2004-06-01 10:29 ` 2.6.7-rc2-mm1 Christoph Hellwig
2004-06-01 13:43 ` 2.6.7-rc2-mm1 Mikael Pettersson
2004-06-01 13:57 ` 2.6.7-rc2-mm1 Christoph Hellwig
2004-06-01 14:14 ` 2.6.7-rc2-mm1 Mikael Pettersson
2004-06-01 10:48 ` 2.6.7-rc2-mm1 Dominik Karall
2004-06-01 11:24 ` 2.6.7-rc2-mm1 William Lee Irwin III
2004-06-01 11:37 ` 2.6.7-rc2-mm1 William Lee Irwin III
2004-06-02 10:18 ` 2.6.7-rc2-mm1 Paul Jackson
2004-06-02 10:23 ` 2.6.7-rc2-mm1 Andrew Morton
2004-06-05 11:07 ` 2.6.7-rc2-mm1 Matthias Urlichs
2004-06-06 8:02 ` 2.6.7-rc2-mm1 Paul Jackson
2004-06-01 11:26 ` 2.6.7-rc2-mm1 William Lee Irwin III
2004-06-01 11:36 ` 2.6.7-rc2-mm1 Keith Owens
2004-06-01 11:26 ` 2.6.7-rc2-mm1 Andy Lutomirski
2004-06-01 11:29 ` 2.6.7-rc2-mm1 William Lee Irwin III
2004-06-01 16:24 ` 2.6.7-rc2-mm1 Mikael Pettersson
2004-06-01 11:51 ` 2.6.7-rc2-mm1 Alexander Gran
2004-06-01 12:19 ` 2.6.7-rc2-mm1 Eric BEGOT
2004-06-01 16:19 ` 2.6.7-rc2-mm1 Adrian Bunk
2004-06-01 21:18 ` 2.6.7-rc2-mm1 Chris Wedgwood
2004-06-01 21:36 ` 2.6.7-rc2-mm1 Andrew Morton
2004-06-01 21:36 ` 2.6.7-rc2-mm1 David S. Miller
2004-06-01 22:21 ` 2.6.7-rc2-mm1 Alexander Gran
2004-06-01 21:45 ` 2.6.7-rc2-mm1 Alex Romosan
2004-06-01 14:55 ` 2.6.7-rc2-mm1: gcc 2.95 uaccess.h warnings Adrian Bunk
2004-06-01 15:03 ` Linus Torvalds
2004-06-01 16:10 ` Adrian Bunk
2004-06-01 16:07 ` 2.6.7-rc2-mm1 Norberto Bensa
2004-06-01 16:07 ` 2.6.7-rc2-mm1: e1000_ethtool.c compile error Adrian Bunk
2004-06-01 19:09 ` 2.6.7-rc2-mm1 Dominik Karall
2004-06-01 19:47 ` 2.6.7-rc2-mm1 Luiz Fernando N. Capitulino
2004-06-01 21:06 ` 2.6.7-rc2-mm1 Dominik Karall
2004-06-01 19:35 ` Peter Lundkvist [this message]
2004-06-01 21:24 ` 2.6.7-rc2-mm1: compile error in kernel/exit.c Mikael Pettersson
2004-06-01 23:12 ` 2.6.7-rc2-mm1 (compile stats) John Cherry
2004-06-02 0:39 ` [patch] 2.6.7-rc2-mm1: let SERIAL_8250_ACPI depend on ACPI_PCI Adrian Bunk
2004-06-02 11:27 ` [ACPI] " Matthew Wilcox
[not found] ` <20040602003938.GJ25681-cg1h10c7RbKzQB+pC5nmwQ@public.gmane.org>
2004-06-02 16:51 ` Bjorn Helgaas
2004-06-02 16:51 ` Bjorn Helgaas
2004-06-02 1:24 ` [1/2] use const in time.h unit conversion functions William Lee Irwin III
2004-06-02 1:26 ` [2/2] fix io_getevents() timer expiry setting William Lee Irwin III
2004-06-02 18:43 ` [1/2] use const in time.h unit conversion functions Matt Mackall
2004-06-02 18:52 ` William Lee Irwin III
2004-06-03 8:17 ` Denis Vlasenko
2004-06-02 9:21 ` 2.6.7-rc2-mm1 - bk-netdev.patch e1000_ethtool.c doesn't build Paul Jackson
2004-06-02 9:41 ` Paul Jackson
2004-06-02 13:26 ` 2.6.7-rc2-mm1 William Lee Irwin III
2004-06-03 23:38 ` 2.6.7-rc2-mm1 Greg KH
2004-06-04 0:07 ` 2.6.7-rc2-mm1 William Lee Irwin III
2004-06-04 5:18 ` 2.6.7-rc2-mm1 Vojtech Pavlik
2004-06-03 0:51 ` 2.6.7-rc2-mm1 Joshua Kwan
2004-06-03 13:24 ` 2.6.7-rc2-mm1 Mikael Pettersson
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=20040601193545.GA2516@debian \
--to=p.lundkvist@telia.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.