All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip: sched/core] sched/vtime: Remove confusing arch_vtime_task_switch() declaration
@ 2024-04-17 12:07 tip-bot2 for Alexander Gordeev
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Alexander Gordeev @ 2024-04-17 12:07 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Alexander Gordeev, Ingo Molnar, Frederic Weisbecker,
	Nicholas Piggin, x86, linux-kernel

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

Commit-ID:     37f36cab53c9e903823b327f964227563766071a
Gitweb:        https://git.kernel.org/tip/37f36cab53c9e903823b327f964227563766071a
Author:        Alexander Gordeev <agordeev@linux.ibm.com>
AuthorDate:    Wed, 10 Apr 2024 17:09:44 +02:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 17 Apr 2024 13:37:19 +02:00

sched/vtime: Remove confusing arch_vtime_task_switch() declaration

Callback arch_vtime_task_switch() is only defined when
CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is selected. Yet, the
function prototype forward declaration is present for
CONFIG_VIRT_CPU_ACCOUNTING_GEN variant. Remove it.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Link: https://lore.kernel.org/r/783d7c611864f82b0fb9edf01890b9396f3a549a.1712760275.git.agordeev@linux.ibm.com
---
 include/linux/vtime.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/vtime.h b/include/linux/vtime.h
index 3684487..593466c 100644
--- a/include/linux/vtime.h
+++ b/include/linux/vtime.h
@@ -18,7 +18,6 @@ extern void vtime_account_idle(struct task_struct *tsk);
 #endif /* !CONFIG_VIRT_CPU_ACCOUNTING */
 
 #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN
-extern void arch_vtime_task_switch(struct task_struct *tsk);
 extern void vtime_user_enter(struct task_struct *tsk);
 extern void vtime_user_exit(struct task_struct *tsk);
 extern void vtime_guest_enter(struct task_struct *tsk);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-17 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 12:07 [tip: sched/core] sched/vtime: Remove confusing arch_vtime_task_switch() declaration tip-bot2 for Alexander Gordeev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.