Skip to content

Commit 404e603

Browse files
cpackham-atlnzJonathan Corbet
authored andcommitted
docs: timekeeping: Use correct prototype for deprecated functions
Use the correct prototypes for do_gettimeofday(), getnstimeofday() and getnstimeofday64(). All of these returned void and passed the return value by reference. This should make the documentation of their deprecation and replacements easier to search for. Signed-off-by: Chris Packham <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 8f3d9f3 commit 404e603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/core-api/timekeeping.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ architectures. These are the recommended replacements:
154154
155155
Use ktime_get() or ktime_get_ts64() instead.
156156
157-
.. c:function:: struct timeval do_gettimeofday( void )
158-
struct timespec getnstimeofday( void )
159-
struct timespec64 getnstimeofday64( void )
157+
.. c:function:: void do_gettimeofday( struct timeval * )
158+
void getnstimeofday( struct timespec * )
159+
void getnstimeofday64( struct timespec64 * )
160160
void ktime_get_real_ts( struct timespec * )
161161
162162
ktime_get_real_ts64() is a direct replacement, but consider using

0 commit comments

Comments
 (0)