[2.6 patch] drivers/char/agp/: make code static

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

 



This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <[email protected]>

---

This patch was already sent on:
- 17 Apr 2005

 drivers/char/agp/ali-agp.c      |    4 ++--
 drivers/char/agp/amd-k7-agp.c   |    2 +-
 drivers/char/agp/amd64-agp.c    |    2 +-
 drivers/char/agp/ati-agp.c      |    2 +-
 drivers/char/agp/backend.c      |    4 ++--
 drivers/char/agp/efficeon-agp.c |    2 +-
 drivers/char/agp/frontend.c     |    6 +++---
 drivers/char/agp/nvidia-agp.c   |    2 +-
 drivers/char/agp/sis-agp.c      |    2 +-
 drivers/char/agp/sworks-agp.c   |    2 +-
 drivers/char/agp/via-agp.c      |    4 ++--
 11 files changed, 16 insertions(+), 16 deletions(-)

--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/ali-agp.c.old	2005-04-17 17:53:35.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/ali-agp.c	2005-04-17 17:53:49.000000000 +0200
@@ -192,7 +192,7 @@
 	{4, 1024, 0, 3}
 };
 
-struct agp_bridge_driver ali_generic_bridge = {
+static struct agp_bridge_driver ali_generic_bridge = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= ali_generic_sizes,
 	.size_type		= U32_APER_SIZE,
@@ -215,7 +215,7 @@
 	.agp_destroy_page	= ali_destroy_page,
 };
 
-struct agp_bridge_driver ali_m1541_bridge = {
+static struct agp_bridge_driver ali_m1541_bridge = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= ali_generic_sizes,
 	.size_type		= U32_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/amd-k7-agp.c.old	2005-04-17 17:53:58.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/amd-k7-agp.c	2005-04-17 17:54:08.000000000 +0200
@@ -358,7 +358,7 @@
 	{.mask = 1, .type = 0}
 };
 
-struct agp_bridge_driver amd_irongate_driver = {
+static struct agp_bridge_driver amd_irongate_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= amd_irongate_sizes,
 	.size_type		= LVL2_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/amd64-agp.c.old	2005-04-17 17:54:26.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/amd64-agp.c	2005-04-17 17:54:35.000000000 +0200
@@ -243,7 +243,7 @@
 }
 
 
-struct agp_bridge_driver amd_8151_driver = {
+static struct agp_bridge_driver amd_8151_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= amd_8151_sizes,
 	.size_type		= U32_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/ati-agp.c.old	2005-04-17 17:54:43.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/ati-agp.c	2005-04-17 17:54:51.000000000 +0200
@@ -393,7 +393,7 @@
 	return 0;
 }
 
-struct agp_bridge_driver ati_generic_bridge = {
+static struct agp_bridge_driver ati_generic_bridge = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= ati_generic_sizes,
 	.size_type		= LVL2_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/backend.c.old	2005-04-17 17:55:00.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/backend.c	2005-04-17 17:55:24.000000000 +0200
@@ -97,7 +97,7 @@
 EXPORT_SYMBOL(agp_backend_release);
 
 
-struct { int mem, agp; } maxes_table[] = {
+static struct { int mem, agp; } maxes_table[] = {
 	{0, 0},
 	{32, 4},
 	{64, 28},
@@ -322,7 +322,7 @@
 	return 0;
 }
 
-void __exit agp_exit(void)
+static void __exit agp_exit(void)
 {
 }
 
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/efficeon-agp.c.old	2005-04-17 17:55:31.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/efficeon-agp.c	2005-04-17 17:55:47.000000000 +0200
@@ -303,7 +303,7 @@
 }
 
 
-struct agp_bridge_driver efficeon_driver = {
+static struct agp_bridge_driver efficeon_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= efficeon_generic_sizes,
 	.size_type		= LVL2_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/frontend.c.old	2005-04-17 17:55:56.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/frontend.c	2005-04-17 17:56:18.000000000 +0200
@@ -235,7 +235,7 @@
 
 /* File private list routines */
 
-struct agp_file_private *agp_find_private(pid_t pid)
+static struct agp_file_private *agp_find_private(pid_t pid)
 {
 	struct agp_file_private *curr;
 
@@ -250,7 +250,7 @@
 	return NULL;
 }
 
-void agp_insert_file_private(struct agp_file_private * priv)
+static void agp_insert_file_private(struct agp_file_private * priv)
 {
 	struct agp_file_private *prev;
 
@@ -262,7 +262,7 @@
 	agp_fe.file_priv_list = priv;
 }
 
-void agp_remove_file_private(struct agp_file_private * priv)
+static void agp_remove_file_private(struct agp_file_private * priv)
 {
 	struct agp_file_private *next;
 	struct agp_file_private *prev;
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/nvidia-agp.c.old	2005-04-17 17:56:36.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/nvidia-agp.c	2005-04-17 17:56:46.000000000 +0200
@@ -288,7 +288,7 @@
 };
 
 
-struct agp_bridge_driver nvidia_driver = {
+static struct agp_bridge_driver nvidia_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= nvidia_generic_sizes,
 	.size_type		= U8_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/sis-agp.c.old	2005-04-17 17:56:55.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/sis-agp.c	2005-04-17 17:57:05.000000000 +0200
@@ -119,7 +119,7 @@
 	{4, 1024, 0, 3}
 };
 
-struct agp_bridge_driver sis_driver = {
+static struct agp_bridge_driver sis_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes 	= sis_generic_sizes,
 	.size_type		= U8_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/sworks-agp.c.old	2005-04-17 17:57:19.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/sworks-agp.c	2005-04-17 17:57:34.000000000 +0200
@@ -409,7 +409,7 @@
 	agp_device_command(command, 0);
 }
 
-struct agp_bridge_driver sworks_driver = {
+static struct agp_bridge_driver sworks_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= serverworks_sizes,
 	.size_type		= LVL2_APER_SIZE,
--- linux-2.6.12-rc2-mm3-full/drivers/char/agp/via-agp.c.old	2005-04-17 17:57:46.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/agp/via-agp.c	2005-04-17 17:58:11.000000000 +0200
@@ -170,7 +170,7 @@
 }
 
 
-struct agp_bridge_driver via_agp3_driver = {
+static struct agp_bridge_driver via_agp3_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= agp3_generic_sizes,
 	.size_type		= U8_APER_SIZE,
@@ -193,7 +193,7 @@
 	.agp_destroy_page	= agp_generic_destroy_page,
 };
 
-struct agp_bridge_driver via_driver = {
+static struct agp_bridge_driver via_driver = {
 	.owner			= THIS_MODULE,
 	.aperture_sizes		= via_generic_sizes,
 	.size_type		= U8_APER_SIZE,

-
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