[-mm patch] make some "struct clocksource" static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux