projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f576d5
)
Make clocksource name const
author
Russell King - ARM Linux
<linux@arm.linux.org.uk>
Sat, 19 Feb 2011 15:34:50 +0000
(15:34 +0000)
committer
John Stultz
<john.stultz@linaro.org>
Mon, 21 Feb 2011 21:29:07 +0000
(13:29 -0800)
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>
include/linux/clocksource.h
patch
|
blob
|
history
diff --git
a/include/linux/clocksource.h
b/include/linux/clocksource.h
index c37b21ad5a3b5c16dcc6c838ce0cb652682362f2..94c1f38e922a9b10d83e54266599d2cc4265f9dd 100644
(file)
--- 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;
+ c
onst c
har *name;
struct list_head list;
int rating;
cycle_t (*read)(struct clocksource *cs);