timekeeping: Fix build when generic clockevents are enabled
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
@@ -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
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.
Signed-off-by Mark Brown <[email protected]>
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@@ -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
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
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.
Signed-off-by Mark Brown <[email protected]>--- include/linux/clockchips.h | 2 ++ 1 file changed, 2 insertions(+)include/linux/clockchips.h +2
-0@@ -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
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.
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. :-)