From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>, john stultz <johnstul@us.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: [-mm patch] make some "struct clocksource" static
Date: Fri, 3 Feb 2006 22:09:03 +0100 [thread overview]
Message-ID: <20060203210903.GN4408@stusta.de> (raw)
In-Reply-To: <20060203000704.3964a39f.akpm@osdl.org>
On Fri, Feb 03, 2006 at 12:07:04AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.15-mm4:
>...
> +time-i386-clocksource-drivers.patch
>...
> Bring back John's time-reqork patches. New, improved, fixed.
>...
This patch makes some needlessly global structs static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
arch/i386/kernel/hpet.c | 2 +-
drivers/clocksource/acpi_pm.c | 2 +-
drivers/clocksource/cyclone.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/hpet.c.old 2006-02-03 16:33:22.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/hpet.c 2006-02-03 16:33:32.000000000 +0100
@@ -19,7 +19,7 @@
return (cycle_t)readl(hpet_ptr);
}
-struct clocksource clocksource_hpet = {
+static struct clocksource clocksource_hpet = {
.name = "hpet",
.rating = 250,
.read = read_hpet,
--- linux-2.6.16-rc1-mm5-full/drivers/clocksource/acpi_pm.c.old 2006-02-03 16:36:43.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/drivers/clocksource/acpi_pm.c 2006-02-03 16:36:51.000000000 +0100
@@ -70,7 +70,7 @@
return (cycle_t)read_pmtmr();
}
-struct clocksource clocksource_acpi_pm = {
+static struct clocksource clocksource_acpi_pm = {
.name = "acpi_pm",
.rating = 200,
.read = acpi_pm_read,
--- linux-2.6.16-rc1-mm5-full/drivers/clocksource/cyclone.c.old 2006-02-03 16:37:01.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/drivers/clocksource/cyclone.c 2006-02-03 16:37:11.000000000 +0100
@@ -24,7 +24,7 @@
return (cycle_t)readl(cyclone_ptr);
}
-struct clocksource clocksource_cyclone = {
+static struct clocksource clocksource_cyclone = {
.name = "cyclone",
.rating = 250,
.read = read_cyclone,
next prev parent reply other threads:[~2006-02-03 21:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-03 8:07 2.6.16-rc1-mm5 Andrew Morton
2006-02-03 10:17 ` 2.6.16-rc1-mm5 Benoit Boissinot
2006-02-03 20:13 ` 2.6.16-rc1-mm5 Benoit Boissinot
2006-02-03 20:36 ` 2.6.16-rc1-mm5 Andrew Morton
2006-02-03 11:51 ` [-mm patch] Makefile: remove a tab from an empty line Adrian Bunk
2006-02-03 20:57 ` [-mm patch] kernel/time/timeofday.c: make struct ts_interval static Adrian Bunk
2006-02-03 21:50 ` john stultz
2006-02-03 20:59 ` [-mm patch] kernel/timer.c: make some variables static Adrian Bunk
2006-02-03 21:02 ` [-mm patch] net/ipv4/fib_rules.c: make struct fib_rules static again Adrian Bunk
2006-02-04 23:51 ` David S. Miller
2006-02-03 21:09 ` Adrian Bunk [this message]
2006-02-03 21:12 ` [-mm patch] arch/i386/kernel/cpu/: make tons of functions static Adrian Bunk
2006-02-03 21:25 ` 2.6.16-rc1-mm5: drivers/ieee1394/oui O=... builds broken Adrian Bunk
2006-02-04 2:43 ` Jody McIntyre
2006-02-04 9:20 ` Sam Ravnborg
2006-02-04 9:08 ` Stefan Richter
2006-02-04 9:30 ` Stefan Richter
2006-02-04 9:31 ` Johannes Berg
2006-02-04 9:58 ` Stefan Richter
2006-02-06 4:31 ` Jody McIntyre
2006-02-04 7:59 ` 2.6.16-rc1-mm5 Matthias Urlichs
2006-02-04 9:29 ` 2.6.16-rc1-mm5 Sam Ravnborg
2006-02-04 9:36 ` 2.6.16-rc1-mm5 Andrew Morton
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=20060203210903.GN4408@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=johnstul@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox