[2.6 patch] matroxfb_base.c: make some code static
From: Adrian Bunk
Date: Sun Jan 23 2005 - 05:31:53 EST
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
---
drivers/video/matrox/matroxfb_base.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
This patch was already sent on:
- 21 Nov 2004
--- linux-2.6.10-rc2-mm2-full/drivers/video/matrox/matroxfb_base.c.old 2004-11-21 14:40:28.000000000 +0100
+++ linux-2.6.10-rc2-mm2-full/drivers/video/matrox/matroxfb_base.c 2004-11-21 14:41:35.000000000 +0100
@@ -1908,8 +1908,8 @@
return err;
}
-LIST_HEAD(matroxfb_list);
-LIST_HEAD(matroxfb_driver_list);
+static LIST_HEAD(matroxfb_list);
+static LIST_HEAD(matroxfb_driver_list);
#define matroxfb_l(x) list_entry(x, struct matrox_fb_info, next_fb)
#define matroxfb_driver_l(x) list_entry(x, struct matroxfb_driver, node)
@@ -2287,7 +2287,7 @@
/* ************************* init in-kernel code ************************** */
-int __init matroxfb_setup(char *options) {
+static int __init matroxfb_setup(char *options) {
char *this_opt;
DBG(__FUNCTION__)
@@ -2428,7 +2428,7 @@
static int __initdata initialized = 0;
-int __init matroxfb_init(void)
+static int __init matroxfb_init(void)
{
char *option = NULL;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/