From nobody Sun Feb 8 07:26:48 2026 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 AE36028FC for ; Fri, 12 Apr 2024 02:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712889028; cv=none; b=J/efxeUXSJZ81HJV/c33R+iGU0ncpwGUj6qhBN2Nk4t+EN6MXCOVzSvc+aImZxxJ5anngfPf2n3m7QyzLSSrSWH/iaIK6KLsZeRXrrG040Tcoivv1CGzAF84/PV3hQtolV2PpNju1KL0WfUo5e3xwc4E+sK+F3CMjC+fKNtYY88= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712889028; c=relaxed/simple; bh=HVYMqLb0FbGAYbjnXpo3nnNB8UYlSekA3Z5qGEWtkPw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=O80OePUezgOioX7ZbJXC+nyJFxIMSqupSMQjZtzgJX2QR7utdFY/wxwYolduFYTYB+E3OfuUo/g2g6i5LCj/ZOXUHocJh0WfP54q4idEIW4/LllHPG0+HDsJsz+jj3dCA9Vh8ilyQblRciA4lwVYChsZC7W5wRCiPBkJelSLQME= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VG0p66S4szwRQY; Fri, 12 Apr 2024 10:27:26 +0800 (CST) Received: from kwepemd100011.china.huawei.com (unknown [7.221.188.204]) by mail.maildlp.com (Postfix) with ESMTPS id 2D6C9140427; Fri, 12 Apr 2024 10:30:24 +0800 (CST) Received: from M910t.huawei.com (10.110.54.157) by kwepemd100011.china.huawei.com (7.221.188.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Fri, 12 Apr 2024 10:30:23 +0800 From: Changbin Du To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot CC: Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , , Changbin Du Subject: [PATCH] sched/cputime: arch_vtime_task_switch() should be declared for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE Date: Fri, 12 Apr 2024 10:30:12 +0800 Message-ID: <20240412023012.2933240-1-changbin.du@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemd100011.china.huawei.com (7.221.188.204) Content-Type: text/plain; charset="utf-8" The arch_vtime_task_switch() is only used by the native vtime accounting code not the generic one. Signed-off-by: Changbin Du --- include/linux/vtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/vtime.h b/include/linux/vtime.h index 005d0870e41b..9f0bad8d8617 100644 --- a/include/linux/vtime.h +++ b/include/linux/vtime.h @@ -10,7 +10,6 @@ #endif =20 #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); @@ -25,6 +24,7 @@ static inline void vtime_init_idle(struct task_struct *ts= k, int cpu) { } #endif =20 #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE +extern void arch_vtime_task_switch(struct task_struct *tsk); extern void vtime_account_irq(struct task_struct *tsk, unsigned int offset= ); extern void vtime_account_softirq(struct task_struct *tsk); extern void vtime_account_hardirq(struct task_struct *tsk); --=20 2.34.1