alarmtimers: Avoid rtc.h include
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 Aug 2019 14:31:43 +0000 (16:31 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Aug 2019 20:09:52 +0000 (22:09 +0200)
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 <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190819143801.565389536@linutronix.de
include/linux/alarmtimer.h

index 0760ca1cb009dab5f0f844a1f706f8c089fbf27f..74748e306f4b8f5ad8e184d9385221e9a61e9538 100644 (file)
@@ -5,7 +5,8 @@
 #include <linux/time.h>
 #include <linux/hrtimer.h>
 #include <linux/timerqueue.h>
-#include <linux/rtc.h>
+
+struct rtc_device;
 
 enum alarmtimer_type {
        ALARM_REALTIME,