lkml.org 
[lkml]   [2006]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[-mm patch] make some "struct clocksource" static
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,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-03 22:11    [W:0.173 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site