Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <chris.packham@alliedtelesis.co.nz>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200414221222.23996-1-chris.packham@alliedtelesis.co.nz
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Chris Packham and committed by
Jonathan Corbet
404e603f 8f3d9f35

+3 -3
+3 -3
Documentation/core-api/timekeeping.rst
··· 154 154 155 155 Use ktime_get() or ktime_get_ts64() instead. 156 156 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 * ) 160 160 void ktime_get_real_ts( struct timespec * ) 161 161 162 162 ktime_get_real_ts64() is a direct replacement, but consider using