Skip to contentSkip to conversation

timekeeping: Fix build when generic clockevents are enabled

PATCH In review Mark Brown 3 participants 6 messages Aug 9, 2012 – Aug 13, 2012 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 timekeeping: Fix build when generic clockevents are enabled

Commit a2c204 (timekeeping: Add suspend and resume of clock event devices) added suspend and resume operations for clockevents but did not provide stubs for these functions, breaking the build when clockevents are not being built. Add the stubs.

---
 include/linux/clockchips.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/clockchips.h +2 -0
index ca060db..4f9c280 100644
@@ -170,6 +170,8 @@ extern void clockevents_notify(unsigned long reason, void *arg);
 #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */
 
 #define clockevents_notify(reason, arg) do { } while (0)
+#define clockevents_suspend() do { } while (0)
+#define clockevents_resume() do { } while (0)
 
 #endif
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Mark Brown

Commit a2c204 (timekeeping: Add suspend and resume of clock event devices) added suspend and resume operations for clockevents but did not provide stubs for these functions, breaking the build when clockevents are not being built. Add the stubs.

I've fixed that already in my tree.

Thanks,
Rafael

Quoted 18 lines
---
 include/linux/clockchips.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/clockchips.h +2 -0
index ca060db..4f9c280 100644
@@ -170,6 +170,8 @@ extern void clockevents_notify(unsigned long reason, void *arg);
 #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */
 
 #define clockevents_notify(reason, arg) do { } while (0)
+#define clockevents_suspend() do { } while (0)
+#define clockevents_resume() do { } while (0)
 
 #endif
 
#2 lore raw
In reply to Mark Brown
Quoted 4 lines · Mark Brown

Commit a2c204 (timekeeping: Add suspend and resume of clock event devices) added suspend and resume operations for clockevents but did not provide stubs for these functions, breaking the build when clockevents are not being built. Add the stubs.

By the way, if you use commit IDs in changelogs like this, please say that they are linux-next commits if that's the case. Otherwise it may look like you're fixing a mainline issue, which is not the case here.

This particular commit is not present in any pulished tree except for linux-next (yet), which is deliberate, because it's going to be rebased in the future and its hash will change.

Thanks,
Rafael

#3 lore raw
In reply to Mark Brown
Quoted 1 line · Mark Brown

Commit a2c204 (timekeeping: Add suspend and resume of clock event devices)

Against which tree is that?

Quoted 26 lines

added suspend and resume operations for clockevents but did not provide stubs for these functions, breaking the build when clockevents are not being built. Add the stubs.

---
 include/linux/clockchips.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/clockchips.h +2 -0
index ca060db..4f9c280 100644
@@ -170,6 +170,8 @@ extern void clockevents_notify(unsigned long reason, void *arg);
 #else /* CONFIG_GENERIC_CLOCKEVENTS_BUILD */
 
 #define clockevents_notify(reason, arg) do { } while (0)
+#define clockevents_suspend() do { } while (0)
+#define clockevents_resume() do { } while (0)
 
 #endif
 
Signature · 1 line
1.7.10.4
author
#4 lore raw
Quoted 5 lines · Thomas Gleixner
Quoted 1 line · Mark Brown

Commit a2c204 (timekeeping: Add suspend and resume of clock event devices)

Against which tree is that?

-next. I think Raphael already folded it into the offending commit.

#5 lore raw
Quoted 8 lines · Mark Brown
Quoted 5 lines · Thomas Gleixner
Quoted 1 line · Mark Brown

Commit a2c204 (timekeeping: Add suspend and resume of clock event devices)

Against which tree is that?

-next. I think Raphael already folded it into the offending commit.

In fact I'd applied the equivalent fix before I got your report. :-)