소스 검색

Make clocksource name const

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>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Russell King - ARM Linux 14 년 전
부모
커밋
36d8593ec7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/linux/clocksource.h

+ 1 - 1
include/linux/clocksource.h

@@ -161,7 +161,7 @@ struct clocksource {
 	/*
 	/*
 	 * First part of structure is read mostly
 	 * First part of structure is read mostly
 	 */
 	 */
-	char *name;
+	const char *name;
 	struct list_head list;
 	struct list_head list;
 	int rating;
 	int rating;
 	cycle_t (*read)(struct clocksource *cs);
 	cycle_t (*read)(struct clocksource *cs);