From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] kernel/timer.c: make two variables static
Date: Tue, 1 Feb 2005 00:42:05 +0100 [thread overview]
Message-ID: <20050131234205.GK21437@stusta.de> (raw)
This patch makes two needlessly global variables static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
diffstat output:
include/linux/timex.h | 2 --
kernel/timer.c | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
This patch was already sent on:
- 12 Dec 2004
--- linux-2.6.10-rc2-mm4-full/include/linux/timex.h.old 2004-12-12 03:32:15.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/include/linux/timex.h 2004-12-12 03:32:54.000000000 +0100
@@ -240,9 +240,7 @@
extern long time_maxerror; /* maximum error */
extern long time_esterror; /* estimated error */
-extern long time_phase; /* phase offset (scaled us) */
extern long time_freq; /* frequency offset (scaled ppm) */
-extern long time_adj; /* tick adjust (scaled 1 / HZ) */
extern long time_reftime; /* time at last adjustment (s) */
extern long time_adjust; /* The amount of adjtime left */
--- linux-2.6.10-rc2-mm4-full/kernel/timer.c.old 2004-12-12 03:33:02.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/kernel/timer.c 2004-12-12 03:33:20.000000000 +0100
@@ -631,10 +631,10 @@
long time_precision = 1; /* clock precision (us) */
long time_maxerror = NTP_PHASE_LIMIT; /* maximum error (us) */
long time_esterror = NTP_PHASE_LIMIT; /* estimated error (us) */
-long time_phase; /* phase offset (scaled us) */
+static long time_phase; /* phase offset (scaled us) */
long time_freq = (((NSEC_PER_SEC + HZ/2) % HZ - HZ/2) << SHIFT_USEC) / NSEC_PER_USEC;
/* frequency offset (scaled ppm)*/
-long time_adj; /* tick adjust (scaled 1 / HZ) */
+static long time_adj; /* tick adjust (scaled 1 / HZ) */
long time_reftime; /* time at last adjustment (s) */
long time_adjust;
long time_next_adjust;
next reply other threads:[~2005-01-31 23:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-31 23:42 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-12-12 20:07 [2.6 patch] kernel/timer.c: make two variables static Adrian Bunk
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=20050131234205.GK21437@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--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.