From: Filip Kalinski <fk181140@zodiac.mimuw.edu.pl>
To: linux-kernel@vger.kernel.org
Subject: (PATCH) small fix for building with new gcc
Date: Mon, 03 Dec 2001 23:46:35 +0100 [thread overview]
Message-ID: <200112032246.fB3MkZVf022727@fk.filipnet> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 649 bytes --]
This patch fixes problem with compiling the kernel with gcc 3.x.
It does not like that xtime is defined differently in linux/sched.h
(as "volatile"), and doesn't want to proceed.
Filip Kaliñski <filon@pld.org.pl>
--- linux-vanilla/kernel/timer.c Sun Nov 4 16:27:47 2001
+++ linux-modfied/kernel/timer.c Fri Nov 23 23:58:34 2001
@@ -32,7 +32,7 @@
long tick = (1000000 + HZ/2) / HZ; /* timer interrupt period */
/* The current time */
-struct timeval xtime __attribute__ ((aligned (16)));
+volatile struct timeval xtime __attribute__ ((aligned (16)));
/* Don't completely fail for HZ > 500. */
int tickadj = 500/HZ ? : 1; /* microsecs */
reply other threads:[~2001-12-04 3:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200112032246.fB3MkZVf022727@fk.filipnet \
--to=fk181140@zodiac.mimuw.edu.pl \
--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
all inboxes | Powered by JetHome®