Skip to content

Commit 6fbafe1

Browse files
panosfolojeda
authored andcommitted
rust: task: fix SAFETY comment in Task::wake_up
The `SAFETY` comment inside the `wake_up` method references erroneously the `signal_pending` C function instead of the `wake_up_process` which is actually called. Fix the comment to reference the correct C function. Fixes: fe95f58 ("rust: task: adjust safety comments in Task methods") Signed-off-by: Panagiotis Foliadis <pfoliadis@posteo.net> Reviewed-by: Charalampos Mitrodimas <charmitro@posteo.net> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20250308-comment-fix-v1-1-4bba709fd36d@posteo.net [ Slightly reworded. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 0ea4c39 commit 6fbafe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl Task {
320320

321321
/// Wakes up the task.
322322
pub fn wake_up(&self) {
323-
// SAFETY: It's always safe to call `signal_pending` on a valid task, even if the task
323+
// SAFETY: It's always safe to call `wake_up_process` on a valid task, even if the task
324324
// running.
325325
unsafe { bindings::wake_up_process(self.as_ptr()) };
326326
}

0 commit comments

Comments
 (0)