aboutsummaryrefslogtreecommitdiff
path: root/rust/kernel/lib.rs
diff options
context:
space:
mode:
authorValentin Obst <[email protected]>2024-01-31 21:23:24 +0100
committerMiguel Ojeda <[email protected]>2024-02-18 21:22:27 +0100
commit69d5fbb0159673ea6737204f4d458a220e81a0c9 (patch)
tree7013565c84f229db90353952b93bcd4fd751c66f /rust/kernel/lib.rs
parentb6cda913bba42e1fdad82df41d906ff603319743 (diff)
rust: error: improve unsafe code in example
The `from_err_ptr` function is safe. There is no need for the call to it to be inside the unsafe block. Reword the SAFETY comment to provide a better justification of why the FFI call is safe. Signed-off-by: Valentin Obst <[email protected]> Reviewed-by: Martin Rodriguez Reboredo <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Trevor Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel/lib.rs')
0 files changed, 0 insertions, 0 deletions