mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] docs: scheduler: completion: Fix minor error in pseudo-code
@ 2023-07-06 11:40 Rick Wertenbroek
  2023-07-14 19:08 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Wertenbroek @ 2023-07-06 11:40 UTC (permalink / raw)
  To: rick.wertenbroek; +Cc: Jonathan Corbet, linux-doc, linux-kernel

Add missing address-of (&) operator in pseudo-code.

Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
---
 Documentation/scheduler/completion.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/scheduler/completion.rst b/Documentation/scheduler/completion.rst
index 9f039b4f4b09..f19aca2062bd 100644
--- a/Documentation/scheduler/completion.rst
+++ b/Documentation/scheduler/completion.rst
@@ -157,7 +157,7 @@ A typical usage scenario is::
 
 	/* run non-dependent code */		/* do setup */
 
-	wait_for_completion(&setup_done);	complete(setup_done);
+	wait_for_completion(&setup_done);	complete(&setup_done);
 
 This is not implying any particular order between wait_for_completion() and
 the call to complete() - if the call to complete() happened before the call
-- 
2.25.1


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

* Re: [PATCH] docs: scheduler: completion: Fix minor error in pseudo-code
  2023-07-06 11:40 [PATCH] docs: scheduler: completion: Fix minor error in pseudo-code Rick Wertenbroek
@ 2023-07-14 19:08 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2023-07-14 19:08 UTC (permalink / raw)
  To: Rick Wertenbroek, rick.wertenbroek; +Cc: linux-doc, linux-kernel

Rick Wertenbroek <rick.wertenbroek@gmail.com> writes:

> Add missing address-of (&) operator in pseudo-code.
>
> Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
> ---
>  Documentation/scheduler/completion.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/scheduler/completion.rst b/Documentation/scheduler/completion.rst
> index 9f039b4f4b09..f19aca2062bd 100644
> --- a/Documentation/scheduler/completion.rst
> +++ b/Documentation/scheduler/completion.rst
> @@ -157,7 +157,7 @@ A typical usage scenario is::
>  
>  	/* run non-dependent code */		/* do setup */
>  
> -	wait_for_completion(&setup_done);	complete(setup_done);
> +	wait_for_completion(&setup_done);	complete(&setup_done);
>  

Applied, thanks.

jon

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

end of thread, other threads:[~2023-07-14 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06 11:40 [PATCH] docs: scheduler: completion: Fix minor error in pseudo-code Rick Wertenbroek
2023-07-14 19:08 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®