[PATCH 22/25] net/dsa: Use static const char arrays

From: Joe Perches
Date: Mon Sep 13 2010 - 15:49:36 EST


Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
net/dsa/dsa.c | 2 +-
net/dsa/dsa_priv.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 6112a12..cca6a10 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -15,7 +15,7 @@
#include <net/dsa.h>
#include "dsa_priv.h"

-char dsa_driver_version[] = "0.1";
+const char dsa_driver_version[] = "0.1";


/* switch driver registration ***********************************************/
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index 4b0ea05..634c22d 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -158,7 +158,7 @@ struct dsa_switch_driver {
};

/* dsa.c */
-extern char dsa_driver_version[];
+extern const char dsa_driver_version[];
void register_switch_driver(struct dsa_switch_driver *type);
void unregister_switch_driver(struct dsa_switch_driver *type);

--
1.7.3.rc1

--
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/