[PATCH 01/13] Make clocksource name const

Russell King - ARM Linux linux at arm.linux.org.uk
Tue May 10 03:27:36 EDT 2011


As nothing should be writing to the clocksource name string, make the
clocksource name pointer const.  Build-tested on ARM Versatile Express.

Cc: Alessandro Rubini <rubini at unipv.it>
Cc: Colin Cross <ccross at android.com>
Cc: Eric Miao <eric.y.miao at gmail.com>
Cc: Erik Gilling <konkers at android.com>
Cc: "Hans J. Koch" <hjk at hansjkoch.de>
Cc: Imre Kaloz <kaloz at openwrt.org>
Cc: Krzysztof Halasa <khc at pm.waw.pl>
Cc: Kukjin Kim <kgene.kim at samsung.com>
Cc: Lennert Buytenhek <kernel at wantstofly.org>
Cc: Linus Walleij <linus.walleij at stericsson.com>
Cc: linux-omap at vger.kernel.org
Cc: Nicolas Pitre <nico at fluxnic.net>
Cc: Olof Johansson <olof at lixom.net>
Cc: Sascha Hauer <kernel at pengutronix.de>
Cc: Tony Lindgren <tony at atomide.com>
Cc: Viresh Kumar <viresh.kumar at st.com>
Cc: Wan ZongShun <mcuos.com at gmail.com>
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
---
 include/linux/clocksource.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index c37b21a..94c1f38 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -161,7 +161,7 @@ struct clocksource {
 	/*
 	 * First part of structure is read mostly
 	 */
-	char *name;
+	const char *name;
 	struct list_head list;
 	int rating;
 	cycle_t (*read)(struct clocksource *cs);
-- 
1.7.4.4




More information about the linux-arm-kernel mailing list