Make clocksource name const
PATCH 1/1 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.
--- include/linux/clocksource.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/clocksource.h +1 -1
@@ -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);
Quoted 4 lines · Russell King - ARM Linux
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 <[email protected]>
Sounds good. I'll add it to my queue for 2.6.39
thanks
-john
Has this patch been rejected?
Quoted 21 lines · Russell King - ARM Linux
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 <[email protected]>--- include/linux/clocksource.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)include/linux/clocksource.h +1
-1@@ -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);
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, I think it just got lost. Will pick it up.
Quoted 23 lines · Russell King - ARM Linux
Quoted 21 lines
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 <[email protected]>--- include/linux/clocksource.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)include/linux/clocksource.h +1
-1@@ -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);
Quoted 5 lines · Thomas Gleixner
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, I think it just got lost. Will pick it up.
Weird, I don't have it at all. Could you please resend?
Thanks,
tglx
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, just my clocksource cleanups tree didn't get pulled for 2.6.39.
Thomas: The commit can be found here:
http://git.linaro.org/gitweb?p=people/jstultz/linux.git;a=commit;h=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6
thanks
-john
Quoted 4 lines · john stultz
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, just my clocksource cleanups tree didn't get pulled for 2.6.39.
Crap.
Quoted 2 lines
Thomas: The commit can be found here:
http://git.linaro.org/gitweb?p=people/jstultz/linux.git;a=commit;h=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6
Is there more stuff pending ?
Thanks,
tglx
Quoted 8 lines · Thomas Gleixner
Quoted 4 lines · john stultz
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, just my clocksource cleanups tree didn't get pulled for 2.6.39.
Crap.
Sorry, I probably should have nagged you a bit more.
Quoted 4 lines
Quoted 2 lines
Thomas: The commit can be found here:
http://git.linaro.org/gitweb?p=people/jstultz/linux.git;a=commit;h=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6Is there more stuff pending ?
Just clocksource_register_hz/khz bits, but those aren't critical, and can be moved in slowly via arch maintainers if you're not comfortable with them. I also need to refresh some of them, as there were some collisions in the merge window.
thanks
-john
Quoted 16 lines · john stultz
Quoted 8 lines · Thomas Gleixner
Quoted 4 lines · john stultz
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, just my clocksource cleanups tree didn't get pulled for 2.6.39.
Crap.
Sorry, I probably should have nagged you a bit more.
Quoted 3 lines
Quoted 2 lines
Thomas: The commit can be found here:
http://git.linaro.org/gitweb?p=people/jstultz/linux.git;a=commit;h=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6
Quoted 6 lines
Quoted 1 line
Is there more stuff pending ?
Just clocksource_register_hz/khz bits, but those aren't critical, and can be moved in slowly via arch maintainers if you're not comfortable with them. I also need to refresh some of them, as there were some collisions in the merge window.
Just tried merging linus head into it, but that does not show any conflicts.
Thanks,
tglx
Re: [PATCH] Make clocksource name const... RTC: Fix early irqs caused by calling rtc_set_alarm too early
Quoted 12 lines · Thomas Gleixner
Quoted 10 lines · john stultz
Quoted 8 lines · Thomas Gleixner
Quoted 4 lines · john stultz
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, just my clocksource cleanups tree didn't get pulled for 2.6.39.
Crap.
Quoted 7 lines
Quoted 7 lines
Sorry, I probably should have nagged you a bit more.
Quoted 4 lines
Quoted 2 lines
Thomas: The commit can be found here:
http://git.linaro.org/gitweb?p=people/jstultz/linux.git;a=commit;h=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6Is there more stuff pending ?
How about the 'RTC: Fix early irqs caused by calling rtc_set_alarm too early'? I tried to search by the git commit dc6b812d1cde06df5c1acba394a79ca80785c776 but didn't find it anymore?
It fixes a regression which inhibits Xen guests booting in 2.6.39.
Re: [PATCH] Make clocksource name const... RTC: Fix early irqs caused by calling rtc_set_alarm too early
Quoted 19 lines · Konrad Rzeszutek Wilk
Quoted 18 lines · Thomas Gleixner
Quoted 16 lines · john stultz
Quoted 8 lines · Thomas Gleixner
Quoted 4 lines · john stultz
Quoted 1 line · Russell King - ARM Linux
Has this patch been rejected?
No, just my clocksource cleanups tree didn't get pulled for 2.6.39.
Crap.
Sorry, I probably should have nagged you a bit more.
Quoted 3 lines
Quoted 2 lines
Thomas: The commit can be found here:
http://git.linaro.org/gitweb?p=people/jstultz/linux.git;a=commit;h=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Is there more stuff pending ?
How about the 'RTC: Fix early irqs caused by calling
rtc_set_alarmtoo early'? I tried to search by the git commitdc6b812d1cde06df5c1acba394a79ca80785c776but didn't find it anymore?It fixes a regression which inhibits Xen guests booting in 2.6.39.
Yep. That's still pending along with other RTC fixes, but in a different branch:
http://git.linaro.org/gitweb?p=people/jstultz/linux.git;a=shortlog;h=refs/heads/fortglx/39/tip/timers/rtc
thanks
-john