public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: linux@treblig.org
To: peterz@infradead.org, jpoimboe@kernel.org, jbaron@akamai.com,
	rostedt@goodmis.org, ardb@kernel.org
Cc: linux-kernel@vger.kernel.org,
	"Dr. David Alan Gilbert" <linux@treblig.org>
Subject: [PATCH] jump_label: Remove unused jump_label_rate_limit
Date: Sun, 29 Jun 2025 21:53:02 +0100	[thread overview]
Message-ID: <20250629205302.296544-1-linux@treblig.org> (raw)

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


             reply	other threads:[~2025-06-29 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-29 20:53 linux [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-11 14:29 [PATCH] jump_label: Remove unused jump_label_rate_limit linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250629205302.296544-1-linux@treblig.org \
    --to=linux@treblig.org \
    --cc=ardb@kernel.org \
    --cc=jbaron@akamai.com \
    --cc=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox