Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: scheduler: completion: Fix minor error in pseudo-code

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

Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20230706114057.1120335-1-rick.wertenbroek@gmail.com

authored by

Rick Wertenbroek and committed by
Jonathan Corbet
f98b161b 5e2045ee

+1 -1
+1 -1
Documentation/scheduler/completion.rst
··· 157 157 158 158 /* run non-dependent code */ /* do setup */ 159 159 160 - wait_for_completion(&setup_done); complete(setup_done); 160 + wait_for_completion(&setup_done); complete(&setup_done); 161 161 162 162 This is not implying any particular order between wait_for_completion() and 163 163 the call to complete() - if the call to complete() happened before the call