From: Thomas Gleixner Date: Mon, 19 Aug 2019 14:31:43 +0000 (+0200) Subject: alarmtimers: Avoid rtc.h include X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3758b0f86ef502e2f342055caef6d2232c2558b7;p=linux.git alarmtimers: Avoid rtc.h include rtc.h is not needed in alarmtimers when a forward declaration of struct rtc_device is provided. That allows to include posix-timers.h without adding more includes to alarmtimer.h or creating circular include dependencies. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Link: https://lkml.kernel.org/r/20190819143801.565389536@linutronix.de --- diff --git a/include/linux/alarmtimer.h b/include/linux/alarmtimer.h index 0760ca1cb009d..74748e306f4b8 100644 --- a/include/linux/alarmtimer.h +++ b/include/linux/alarmtimer.h @@ -5,7 +5,8 @@ #include #include #include -#include + +struct rtc_device; enum alarmtimer_type { ALARM_REALTIME,