[tip: timers/core] hrtimer: Remove hrtimer_get_expires_ns()

From: tip-bot2 for Thomas Weißschuh (Schneider Electric)

Date: Thu Mar 12 2026 - 07:33:44 EST


The following commit has been merged into the timers/core branch of tip:

Commit-ID: 8ef2807042d0886a85bbcb0aba1a2a277680dc4a
Gitweb: https://git.kernel.org/tip/8ef2807042d0886a85bbcb0aba1a2a277680dc4a
Author: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Wed, 11 Mar 2026 11:15:15 +01:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Thu, 12 Mar 2026 12:15:54 +01:00

hrtimer: Remove hrtimer_get_expires_ns()

There are no users left.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-6-095357392669@xxxxxxxxxxxxx
---
include/linux/hrtimer.h | 5 -----
1 file changed, 5 deletions(-)

diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index c087b71..9ced498 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -116,11 +116,6 @@ static inline ktime_t hrtimer_get_softexpires(const struct hrtimer *timer)
return timer->_softexpires;
}

-static inline s64 hrtimer_get_expires_ns(const struct hrtimer *timer)
-{
- return ktime_to_ns(timer->node.expires);
-}
-
ktime_t hrtimer_cb_get_time(const struct hrtimer *timer);

static inline ktime_t hrtimer_expires_remaining(const struct hrtimer *timer)