From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjk@hansjkoch.de (Hans J. Koch) Date: Thu, 19 May 2011 03:24:42 +0200 Subject: [PATCH 01/19] Make clocksource name const In-Reply-To: References: <20110516172334.GD13659@n2100.arm.linux.org.uk> Message-ID: <20110519012442.GA2728@local> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, May 16, 2011 at 06:25:54PM +0100, Russell King - ARM Linux wrote: > 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 > Cc: Colin Cross > Cc: Eric Miao > Cc: Erik Gilling > Cc: "Hans J. Koch" > Cc: Imre Kaloz > Cc: Krzysztof Halasa > Cc: Kukjin Kim > Cc: Lennert Buytenhek > Cc: Linus Walleij > Cc: linux-omap at vger.kernel.org > Cc: Nicolas Pitre > Cc: Olof Johansson > Cc: Sascha Hauer > Cc: Tony Lindgren > Cc: Viresh Kumar > Cc: Wan ZongShun > Signed-off-by: Russell King Acked-by: "Hans J. Koch" > --- > 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 > >