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 <[email protected]> Cc: Colin Cross <[email protected]> Cc: Eric Miao <[email protected]> Cc: Erik Gilling <[email protected]> Cc: "Hans J. Koch" <[email protected]> Cc: Imre Kaloz <[email protected]> Cc: Krzysztof Halasa <[email protected]> Cc: Kukjin Kim <[email protected]> Cc: Lennert Buytenhek <[email protected]> Cc: Linus Walleij <[email protected]> Cc: [email protected] Cc: Nicolas Pitre <[email protected]> Cc: Olof Johansson <[email protected]> Cc: Sascha Hauer <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: Viresh Kumar <[email protected]> Cc: Wan ZongShun <[email protected]> Signed-off-by: Russell King <[email protected]> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
