lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250111142913.221053-1-linux@treblig.org>
Date: Sat, 11 Jan 2025 14:29:13 +0000
From: linux@...blig.org
To: peterz@...radead.org,
	jpoimboe@...nel.org,
	jbaron@...mai.com,
	rostedt@...dmis.org,
	ardb@...nel.org
Cc: linux-kernel@...r.kernel.org,
	"Dr. David Alan Gilbert" <linux@...blig.org>
Subject: [PATCH] jump_label: Remove unused jump_label_rate_limit

From: "Dr. David Alan Gilbert" <linux@...blig.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@...blig.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 93a822d3c468..4d4379e0cccd 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.47.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ