提交 36d8593e 编写于 作者: R Russell King - ARM Linux 提交者: John Stultz

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: NRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: NJohn Stultz <johnstul@us.ibm.com>
上级 6f576d57
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册