public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make clocksource name const
@ 2011-02-19 15:34 Russell King - ARM Linux
  2011-02-21 18:51 ` john stultz
  2011-04-02 14:11 ` Russell King - ARM Linux
  0 siblings, 2 replies; 11+ messages in thread
From: Russell King - ARM Linux @ 2011-02-19 15:34 UTC (permalink / raw)
  To: Thomas Gleixner, John Stultz; +Cc: linux-kernel

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

Signed-off-by: Russell King <rmk+kernel@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);

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-04-04 21:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-19 15:34 [PATCH] Make clocksource name const Russell King - ARM Linux
2011-02-21 18:51 ` john stultz
2011-04-02 14:11 ` Russell King - ARM Linux
2011-04-02 19:08   ` Thomas Gleixner
2011-04-02 19:31     ` Thomas Gleixner
2011-04-04 17:42   ` john stultz
2011-04-04 17:44     ` Thomas Gleixner
2011-04-04 18:22       ` john stultz
2011-04-04 19:07         ` Thomas Gleixner
2011-04-04 20:25           ` [PATCH] Make clocksource name const... RTC: Fix early irqs caused by calling rtc_set_alarm too early Konrad Rzeszutek Wilk
2011-04-04 21:07             ` john stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox