[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <156652633652.11658.4484460911673616880.tip-bot2@tip-bot2>
Date: Fri, 23 Aug 2019 02:12:16 -0000
From: tip-bot2 for Thomas Gleixner <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Frederic Weisbecker <frederic@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: [tip: timers/core] alarmtimers: Avoid rtc.h include
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 3758b0f86ef502e2f342055caef6d2232c2558b7
Gitweb: https://git.kernel.org/tip/3758b0f86ef502e2f342055caef6d2232c2558b7
Author: Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Mon, 19 Aug 2019 16:31:43 +02:00
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Tue, 20 Aug 2019 22:09:52 +02:00
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 <tglx@...utronix.de>
Reviewed-by: Frederic Weisbecker <frederic@...nel.org>
Link: https://lkml.kernel.org/r/20190819143801.565389536@linutronix.de
---
include/linux/alarmtimer.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/alarmtimer.h b/include/linux/alarmtimer.h
index 0760ca1..74748e3 100644
--- a/include/linux/alarmtimer.h
+++ b/include/linux/alarmtimer.h
@@ -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,
Powered by blists - more mailing lists