[<prev] [next>] [day] [month] [year] [list]
Message-Id: <6f30d7cee56ea84ece4fea487a7859857c811cb0.1284406639.git.joe@perches.com>
Date: Mon, 13 Sep 2010 12:48:00 -0700
From: Joe Perches <joe@...ches.com>
To: linux-kernel@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: [PATCH 22/25] net/dsa: Use static const char arrays
Signed-off-by: Joe Perches <joe@...ches.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists