From: Thomas Gleixner Date: Thu, 29 Aug 2019 06:19:40 +0000 (+0200) Subject: posix-timers: Unbreak CONFIG_POSIX_TIMERS=n build X-Git-Tag: v5.4-rc1~159^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f2edb4a78f7f5fa35c025849152b1d2dfaee4eb;p=thirdparty%2Fkernel%2Flinux.git 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: 60bda037f1dd ("posix-cpu-timers: Utilize timerqueue for storage") Reported-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index f9fbb4c620c1e..e685916551bf6 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h @@ -161,6 +161,7 @@ static inline void posix_cputimers_rt_watchdog(struct posix_cputimers *pct, }, #else struct posix_cputimers { }; +struct cpu_timer { }; #define INIT_CPU_TIMERS(s) static inline void posix_cputimers_init(struct posix_cputimers *pct) { } static inline void posix_cputimers_group_init(struct posix_cputimers *pct,