From f98b161b0d019e5b14c633503724cdc8a73c2480 Mon Sep 17 00:00:00 2001 From: Rick Wertenbroek Date: Thu, 6 Jul 2023 13:40:55 +0200 Subject: [PATCH] docs: scheduler: completion: Fix minor error in pseudo-code Add missing address-of (&) operator in pseudo-code. Signed-off-by: Rick Wertenbroek Signed-off-by: Jonathan Corbet Link: https://lore.kernel.org/r/20230706114057.1120335-1-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