The rework of the posix-cpu-timers patch series dropped the empty declaration of struct cpu_timer for the CONFIG_POSIX_TIMERS=n case which causes the build to fail: ./include/linux/posix-timers.h:218:20: error: field 'cpu' has incomplete type Add it back.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -161,6 +161,7 @@ static inline void posix_cputimers_rt_watchdog(struct posix_cputimers *pct, · 160 unmodified lines | |||
| 161 | }, | 161 | }, |
| 162 | #else | 162 | #else |
| 163 | struct posix_cputimers { }; | 163 | struct posix_cputimers { }; |
| 164 | struct cpu_timer { }; | ||
| 164 | #define INIT_CPU_TIMERS(s) | 165 | #define INIT_CPU_TIMERS(s) |
| 165 | static inline void posix_cputimers_init(struct posix_cputimers *pct) { } | 166 | static inline void posix_cputimers_init(struct posix_cputimers *pct) { } |
| 166 | static inline void posix_cputimers_group_init(struct posix_cputimers *pct, | 167 | static inline void posix_cputimers_group_init(struct posix_cputimers *pct, |