[PATCH] jump_label: Remove unused jump_label_rate_limit

linux@treblig.org posted 1 patch 3 months, 1 week ago
include/linux/jump_label_ratelimit.h | 8 --------
kernel/jump_label.c                  | 9 ---------
2 files changed, 17 deletions(-)
[PATCH] jump_label: Remove unused jump_label_rate_limit
Posted by linux@treblig.org 3 months, 1 week ago
From: "Dr. David Alan Gilbert" <linux@treblig.org>

The last use of jump_label_rate_limit() was removed in 2021 by
commit 6e4e3b4df4e3 ("KVM: Stop using deprecated jump label APIs")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 include/linux/jump_label_ratelimit.h | 8 --------
 kernel/jump_label.c                  | 9 ---------
 2 files changed, 17 deletions(-)

diff --git a/include/linux/jump_label_ratelimit.h b/include/linux/jump_label_ratelimit.h
index 8c3ee291b2d8..ae6c049ea6fd 100644
--- a/include/linux/jump_label_ratelimit.h
+++ b/include/linux/jump_label_ratelimit.h
@@ -37,8 +37,6 @@ __static_key_slow_dec_deferred(struct static_key *key,
 			       struct delayed_work *work,
 			       unsigned long timeout);
 extern void __static_key_deferred_flush(void *key, struct delayed_work *work);
-extern void
-jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl);
 
 extern void jump_label_update_timeout(struct work_struct *work);
 
@@ -86,12 +84,6 @@ static inline void static_key_deferred_flush(void *key)
 {
 	STATIC_KEY_CHECK_USE(key);
 }
-static inline void
-jump_label_rate_limit(struct static_key_deferred *key,
-		unsigned long rl)
-{
-	STATIC_KEY_CHECK_USE(key);
-}
 #endif	/* CONFIG_JUMP_LABEL */
 
 #define static_branch_deferred_inc(x)	static_branch_inc(&(x)->key)
diff --git a/kernel/jump_label.c b/kernel/jump_label.c
index 7cb19e601426..caceeb94824e 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -363,15 +363,6 @@ void __static_key_deferred_flush(void *key, struct delayed_work *work)
 }
 EXPORT_SYMBOL_GPL(__static_key_deferred_flush);
 
-void jump_label_rate_limit(struct static_key_deferred *key,
-		unsigned long rl)
-{
-	STATIC_KEY_CHECK_USE(key);
-	key->timeout = rl;
-	INIT_DELAYED_WORK(&key->work, jump_label_update_timeout);
-}
-EXPORT_SYMBOL_GPL(jump_label_rate_limit);
-
 static int addr_conflict(struct jump_entry *entry, void *start, void *end)
 {
 	if (jump_entry_code(entry) <= (unsigned long)end &&
-- 
2.50.0