From patchwork Tue May 10 07:27:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell King - ARM Linux X-Patchwork-Id: 772772 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4A7T4xM012771 for ; Tue, 10 May 2011 07:29:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754553Ab1EJH3C (ORCPT ); Tue, 10 May 2011 03:29:02 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:49604 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754712Ab1EJH3B (ORCPT ); Tue, 10 May 2011 03:29:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=arm.linux.org.uk; s=caramon; h=Sender:Content-Type:MIME-Version:Subject:Cc:To:From:References:In-Reply-To:Message-Id:Date; bh=BCmCp7GyfiOcZYiajtQlK4vyprrVR/IiOrvgi9pSUqw=; b=Ctkm41kiyeMs0segx9Q6G++SqJx29dyxZSSBZ0kQuDpYZp8t0+9UwshIHUXEWhxiT4UNt5xYoE/uKmZMM/FIuLipLZ/s/t5W/t08SNwoTBbdPyEXQMrbwaOzcr32D1sfMjHaNdT1f/En4IdpxS21ubnRbAA0A6Gdyod6fCTBIoo=; Received: from e0022681537dd.dyn.arm.linux.org.uk ([2002:4e20:1eda:1:222:68ff:fe15:37dd] helo=rmk-PC.arm.linux.org.uk) by caramon.arm.linux.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QJhM1-0005hC-VO; Tue, 10 May 2011 08:27:38 +0100 Received: from rmk by rmk-PC.arm.linux.org.uk with local (Exim 4.72) (envelope-from ) id 1QJhM0-0000yN-CG; Tue, 10 May 2011 08:27:36 +0100 Date: Tue, 10 May 2011 08:27:36 +0100 Message-Id: In-Reply-To: <20110510072700.GA29869@n2100.arm.linux.org.uk> References: <20110510072700.GA29869@n2100.arm.linux.org.uk> From: Russell King - ARM Linux To: linux-arm-kernel@lists.infradead.org, John Stultz , Thomas Gleixner Cc: Alessandro Rubini , Colin Cross , Eric Miao , Erik Gilling , "Hans J. Koch" , Imre Kaloz , Krzysztof Halasa , Kukjin Kim , Lennert Buytenhek , Linus Walleij , linux-omap@vger.kernel.org, Nicolas Pitre , Olof Johansson , Sascha Hauer , Tony Lindgren , Viresh Kumar , Wan ZongShun Subject: [PATCH 01/13] Make clocksource name const MIME-Version: 1.0 Content-Disposition: inline Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 10 May 2011 07:29:05 +0000 (UTC) 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 --- 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);