Skip to content

Commit 37f36ca

Browse files
Alexander GordeevIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> Link: https://lore.kernel.org/r/783d7c611864f82b0fb9edf01890b9396f3a549a.1712760275.git.agordeev@linux.ibm.com
1 parent 4475cd8 commit 37f36ca

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/linux/vtime.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ extern void vtime_account_idle(struct task_struct *tsk);
1818
#endif /* !CONFIG_VIRT_CPU_ACCOUNTING */
1919

2020
#ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN
21-
extern void arch_vtime_task_switch(struct task_struct *tsk);
2221
extern void vtime_user_enter(struct task_struct *tsk);
2322
extern void vtime_user_exit(struct task_struct *tsk);
2423
extern void vtime_guest_enter(struct task_struct *tsk);

0 commit comments

Comments
 (0)