From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hans J. Koch" Subject: Re: [PATCH 01/19] Make clocksource name const Date: Thu, 19 May 2011 03:24:42 +0200 Message-ID: <20110519012442.GA2728@local> References: <20110516172334.GD13659@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Russell King - ARM Linux Cc: Kukjin Kim , Eric Miao , Linus Walleij , Erik Gilling , Nicolas Pitre , Tony Lindgren , John Stultz , Krzysztof Halasa , linux-omap@vger.kernel.org, "Hans J. Koch" , Sascha Hauer , Colin Cross , Olof Johansson , Thomas Gleixner , Imre Kaloz , Wan ZongShun , Lennert Buytenhek , linux-arm-kernel@lists.infradead.org, Alessandro Rubini List-Id: linux-omap@vger.kernel.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@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 > >