From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 678311ACEB4 for ; Sat, 11 Jan 2025 14:29:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736605775; cv=none; b=o6Iurb2wKIM32CHK7UcD/DgBhpciO52VCwKUA98Isf/kJgahgzyoJ6Ekqplr4elZuLHLEy4F5XPv5MnauoV7mQc1ESdIxzTSSzNAjDZGYkU9MP2VHfs4jeQYNh6yJ/FqB7p5HFYjfkKmxLUEYXCXDqaJhGuPAfVI09bloH3CpFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736605775; c=relaxed/simple; bh=SOyI/VQRSi++kN9sqGzi1n/dxAvNDUO/DBuQkMg2grg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=khbIixMRYvK4uyyUIDpWJ9B0fAtgfgslFBpkC4TQAdC4lFlcgNyiDYkip5xKYeTYjj30A7nPx3RtjmhuTTO/N+H2ZeD5/1erjsHfifmPqx86iqt6bZbPQIxCGoflIG5xUb2zMeGy1I/9mnPa/kaowfVp0B0fsFLYBjQlsQx+VwE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=ncL9vlcy; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="ncL9vlcy" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=rv/EmqJiaq1shP57oXYRF1wFdKq68AhnjS3kiVLZcWE=; b=ncL9vlcynGxBUBpU 5mSZzh8cozwZJL847H6BYZcm9UhNxiQ79Q0GwRI1+NabI9OjtjDFd1sv5NDzuJXsPugez+PZwVSFR GfATf2Dxa24uoQQyVbzsezSuklDqnF/TD9pfKTQvZoVGjp6ri95P63mjBXqva1aU/ReU2ADCE4CaR GoaQ6UBkyuBoHYWcnaBM3fPAOmt8XNA0BN4hAGNvDt81okahH2/mXOHB76R6Znqrn5mBuY/YyA0/m 4/zu2coPUmXPXDd5QQnbXpZReTCEk93WDi1g+lKz3tRpkwNkGdQDCJ4vEYTkoelDmYSEqPWeAcgcI PiSE+es0p8m5L8NhcA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1tWcUE-009Vn7-1U; Sat, 11 Jan 2025 14:29:14 +0000 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" Subject: [PATCH] jump_label: Remove unused jump_label_rate_limit Date: Sat, 11 Jan 2025 14:29:13 +0000 Message-ID: <20250111142913.221053-1-linux@treblig.org> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" 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 --- 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