Skip to content

Commit 8f2edb4

Browse files
committed
posix-timers: Unbreak CONFIG_POSIX_TIMERS=n build
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. Fixes: 60bda03 ("posix-cpu-timers: Utilize timerqueue for storage") Reported-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 71fed98 commit 8f2edb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/posix-timers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ static inline void posix_cputimers_rt_watchdog(struct posix_cputimers *pct,
161161
},
162162
#else
163163
struct posix_cputimers { };
164+
struct cpu_timer { };
164165
#define INIT_CPU_TIMERS(s)
165166
static inline void posix_cputimers_init(struct posix_cputimers *pct) { }
166167
static inline void posix_cputimers_group_init(struct posix_cputimers *pct,

0 commit comments

Comments
 (0)