jump_label: Remove unused jump_label_rate_limit
PATCH 1/1 jump_label: Remove unused jump_label_rate_limit
From: "Dr. David Alan Gilbert" <[email protected]>
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 <[email protected]>
--- include/linux/jump_label_ratelimit.h | 8 -------- kernel/jump_label.c | 9 --------- 2 files changed, 17 deletions(-)
include/linux/jump_label_ratelimit.h +0 -8
@@ -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)
kernel/jump_label.c +0 -9
@@ -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 &&
Signature · 1 line
2.47.1