From: Rick Wertenbroek Date: Thu, 6 Jul 2023 11:40:55 +0000 (+0200) Subject: docs: scheduler: completion: Fix minor error in pseudo-code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f98b161b0d019e5b14c633503724cdc8a73c2480;p=linux.git 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 --- diff --git a/Documentation/scheduler/completion.rst b/Documentation/scheduler/completion.rst index 9f039b4f4b09b..f19aca2062bd1 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