* [PATCH] docs: timekeeping: Use correct prototype for deprecated functions
@ 2020-04-14 22:12 Chris Packham
2020-04-15 8:10 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Chris Packham @ 2020-04-14 22:12 UTC (permalink / raw)
To: corbet, tglx, Jason, arnd; +Cc: linux-doc, linux-kernel, Chris Packham
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>
---
Documentation/core-api/timekeeping.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/core-api/timekeeping.rst b/Documentation/core-api/timekeeping.rst
index c0ffa30c7c37..729e24864fe7 100644
--- a/Documentation/core-api/timekeeping.rst
+++ b/Documentation/core-api/timekeeping.rst
@@ -154,9 +154,9 @@ architectures. These are the recommended replacements:
Use ktime_get() or ktime_get_ts64() instead.
-.. c:function:: struct timeval do_gettimeofday( void )
- struct timespec getnstimeofday( void )
- struct timespec64 getnstimeofday64( void )
+.. c:function:: void do_gettimeofday( struct timeval * )
+ void getnstimeofday( struct timespec * )
+ void getnstimeofday64( struct timespec64 * )
void ktime_get_real_ts( struct timespec * )
ktime_get_real_ts64() is a direct replacement, but consider using
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] docs: timekeeping: Use correct prototype for deprecated functions
2020-04-14 22:12 [PATCH] docs: timekeeping: Use correct prototype for deprecated functions Chris Packham
@ 2020-04-15 8:10 ` Arnd Bergmann
2020-04-15 20:48 ` Jonathan Corbet
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2020-04-15 8:10 UTC (permalink / raw)
To: Chris Packham
Cc: Jonathan Corbet, Thomas Gleixner, Jason A. Donenfeld,
open list:DOCUMENTATION, linux-kernel
On Wed, Apr 15, 2020 at 12:12 AM Chris Packham
<chris.packham@alliedtelesis.co.nz> wrote:
>
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] docs: timekeeping: Use correct prototype for deprecated functions
2020-04-15 8:10 ` Arnd Bergmann
@ 2020-04-15 20:48 ` Jonathan Corbet
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2020-04-15 20:48 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Chris Packham, Thomas Gleixner, Jason A. Donenfeld,
open list:DOCUMENTATION, linux-kernel
On Wed, 15 Apr 2020 10:10:50 +0200
Arnd Bergmann <arnd@arndb.de> wrote:
> On Wed, Apr 15, 2020 at 12:12 AM Chris Packham
> <chris.packham@alliedtelesis.co.nz> wrote:
> >
> > 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>
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-15 20:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 22:12 [PATCH] docs: timekeeping: Use correct prototype for deprecated functions Chris Packham
2020-04-15 8:10 ` Arnd Bergmann
2020-04-15 20:48 ` Jonathan Corbet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.