Skip to contentSkip to conversation

Make clocksource name const

PATCH In review Russell King - ARM Linux 4 participants 11 messages Feb 19, 2011 – Apr 4, 2011 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore
#0 lore raw

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
index c37b21a..94c1f38 100644
@@ -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);
#2 lore raw
In reply to Russell King - ARM Linux

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.

---
 include/linux/clocksource.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/clocksource.h +1 -1
index c37b21a..94c1f38 100644
@@ -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);
#3 lore raw
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.

---
 include/linux/clocksource.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/clocksource.h +1 -1
index c37b21a..94c1f38 100644
@@ -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);
#4 lore raw
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

#7 lore raw
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=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6

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.

thanks
-john

#8 lore raw
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

#9 lore raw

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=36d8593ec74dc04d3bd7c1c897a7b7cfbd0b0dc6

Is 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.

#10 lore raw

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_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.

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