[tip: sched/core] sched: Remove unneeded function type cast in do_balance_callbacks()

From: tip-bot2 for Vladimir Zapolskiy

Date: Wed Sep 02 2026 - 04:01:57 EST


The following commit has been merged into the sched/core branch of tip:

Commit-ID: 4248f68fe26da7b741d3b9c6a88a3c5b685377f9
Gitweb: https://git.kernel.org/tip/4248f68fe26da7b741d3b9c6a88a3c5b685377f9
Author: Vladimir Zapolskiy <vz@xxxxxxxxxx>
AuthorDate: Wed, 19 Aug 2026 11:01:58 +03:00
Committer: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
CommitterDate: Wed, 02 Sep 2026 09:37:25 +02:00

sched: Remove unneeded function type cast in do_balance_callbacks()

It's a trivial and non-functional change, the removed explicit function
type cast does not convert the function type of struct balance_callback
member (*func), and the cast can be removed.

Signed-off-by: Vladimir Zapolskiy <vz@xxxxxxxxxx>
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Link: https://patch.msgid.link/20260819080159.105433-1-vz@xxxxxxxxxx
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4e97766..545f494 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5143,7 +5143,7 @@ static void do_balance_callbacks(struct rq *rq, struct balance_callback *head)
lockdep_assert_rq_held(rq);

while (head) {
- func = (void (*)(struct rq *))head->func;
+ func = head->func;
next = head->next;
head->next = NULL;
head = next;