Skip to content

Commit 3758b0f

Browse files
committed
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 <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent ce03f61 commit 3758b0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/alarmtimer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#include <linux/time.h>
66
#include <linux/hrtimer.h>
77
#include <linux/timerqueue.h>
8-
#include <linux/rtc.h>
8+
9+
struct rtc_device;
910

1011
enum alarmtimer_type {
1112
ALARM_REALTIME,

0 commit comments

Comments
 (0)