vdso/datapage: Correct the vdso_timestamp kernel-doc
PATCH 1/1 vdso/datapage: Correct the vdso_timestamp kernel-doc
From: Zhan Xusheng <[email protected]>
The kernel-doc of struct vdso_timestamp describes where its two fields come from by naming the members that define them.
Both names moved. cycle_last and shift are members of struct vdso_clock, and the array subscript in "vdso_time_data[x].shift" refers to a datapage layout that no longer exists.
Name the struct that holds them now.
--- include/vdso/datapage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/vdso/datapage.h +2 -2
@@ -48,11 +48,11 @@ struct vdso_arch_data {* * There is one vdso_timestamp object in vvar for each vDSO-accelerated * clock_id. For high-resolution clocks, this encodes the time -* corresponding to vdso_time_data.cycle_last. For coarse clocks this encodes +* corresponding to vdso_clock.cycle_last. For coarse clocks this encodes * the actual time. * * To be noticed that for highres clocks nsec is left-shifted by -* vdso_time_data[x].shift. +* vdso_clock.shift. */ struct vdso_timestamp {u64 sec;
Signature · 1 line
2.43.0
The following commit has been merged into the timers/vdso branch of tip:
The following commit has been merged into the timers/vdso branch of tip:
Commit-ID: a877a3089b96ac0f7f8aa65a05ae5a441dbae1a5 Gitweb: https://git.kernel.org/tip/a877a3089b96ac0f7f8aa65a05ae5a441dbae1a5 Author: Zhan Xusheng <[email protected]> AuthorDate: Tue, 10 Nov 2026 14:22:07 +08:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Thu, 12 Nov 2026 20:11:07 +01:00
vdso/datapage: Correct the vdso_timestamp kernel-doc
The kernel-doc of struct vdso_timestamp describes where its two fields come from by naming the members that define them.
Both names changed. cycle_last and shift are members of struct vdso_clock, and the array subscript in "vdso_time_data[x].shift" refers to a datapage layout that no longer exists.
Rename the references accordingly.
--- include/vdso/datapage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/vdso/datapage.h +2 -2
@@ -48,11 +48,11 @@ struct vdso_arch_data {* * There is one vdso_timestamp object in vvar for each vDSO-accelerated * clock_id. For high-resolution clocks, this encodes the time -* corresponding to vdso_time_data.cycle_last. For coarse clocks this encodes +* corresponding to vdso_clock.cycle_last. For coarse clocks this encodes * the actual time. * * To be noticed that for highres clocks nsec is left-shifted by -* vdso_time_data[x].shift. +* vdso_clock.shift. */ struct vdso_timestamp {u64 sec;