All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: power: fix docs for ioctls that return loff_t via pointer
@ 2020-03-08  3:22 Eric Biggers
  2020-03-14 10:53 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2020-03-08  3:22 UTC (permalink / raw)
  To: Rafael J . Wysocki, Len Brown, Pavel Machek, linux-pm

From: Eric Biggers <ebiggers@google.com>

Correctly document how the SNAPSHOT_GET_IMAGE_SIZE and
SNAPSHOT_AVAIL_SWAP_SIZE ioctls return their result.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 Documentation/power/userland-swsusp.rst | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Documentation/power/userland-swsusp.rst b/Documentation/power/userland-swsusp.rst
index a0fa51bb1a4d..1cf62d80a9ca 100644
--- a/Documentation/power/userland-swsusp.rst
+++ b/Documentation/power/userland-swsusp.rst
@@ -69,11 +69,13 @@ SNAPSHOT_PREF_IMAGE_SIZE
 
 SNAPSHOT_GET_IMAGE_SIZE
 	return the actual size of the hibernation image
+	(the last argument should be a pointer to a loff_t variable that
+	will contain the result if the call is successful)
 
 SNAPSHOT_AVAIL_SWAP_SIZE
-	return the amount of available swap in bytes (the
-	last argument should be a pointer to an unsigned int variable that will
-	contain the result if the call is successful).
+	return the amount of available swap in bytes
+	(the last argument should be a pointer to a loff_t variable that
+	will contain the result if the call is successful)
 
 SNAPSHOT_ALLOC_SWAP_PAGE
 	allocate a swap page from the resume partition
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] docs: power: fix docs for ioctls that return loff_t via pointer
  2020-03-08  3:22 [PATCH] docs: power: fix docs for ioctls that return loff_t via pointer Eric Biggers
@ 2020-03-14 10:53 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2020-03-14 10:53 UTC (permalink / raw)
  To: Eric Biggers; +Cc: Len Brown, Pavel Machek, linux-pm

On Sunday, March 8, 2020 4:22:16 AM CET Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Correctly document how the SNAPSHOT_GET_IMAGE_SIZE and
> SNAPSHOT_AVAIL_SWAP_SIZE ioctls return their result.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>  Documentation/power/userland-swsusp.rst | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/power/userland-swsusp.rst b/Documentation/power/userland-swsusp.rst
> index a0fa51bb1a4d..1cf62d80a9ca 100644
> --- a/Documentation/power/userland-swsusp.rst
> +++ b/Documentation/power/userland-swsusp.rst
> @@ -69,11 +69,13 @@ SNAPSHOT_PREF_IMAGE_SIZE
>  
>  SNAPSHOT_GET_IMAGE_SIZE
>  	return the actual size of the hibernation image
> +	(the last argument should be a pointer to a loff_t variable that
> +	will contain the result if the call is successful)
>  
>  SNAPSHOT_AVAIL_SWAP_SIZE
> -	return the amount of available swap in bytes (the
> -	last argument should be a pointer to an unsigned int variable that will
> -	contain the result if the call is successful).
> +	return the amount of available swap in bytes
> +	(the last argument should be a pointer to a loff_t variable that
> +	will contain the result if the call is successful)
>  
>  SNAPSHOT_ALLOC_SWAP_PAGE
>  	allocate a swap page from the resume partition
> 

Applied as 5.7 material, thanks!





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-15  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-08  3:22 [PATCH] docs: power: fix docs for ioctls that return loff_t via pointer Eric Biggers
2020-03-14 10:53 ` Rafael J. Wysocki

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.