Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] rust: dma_buf: unbraced types:: imports violate vertical import
  style
--

commit 56c9983dfb639b5faf163be9218eb021f7654558
Author: Daniel Almeida <[email protected]>

rust: dma_buf: dma_fence: add SignallingSection

This commit adds a SignallingSection guard wrapping
dma_fence_begin_signalling() and dma_fence_end_signalling(), and uses it
in the DriverFence documentation example.

> diff --git a/rust/kernel/dma_buf/dma_fence.rs 
> b/rust/kernel/dma_buf/dma_fence.rs
> index a1d851656562d..7ee87935d3be3 100644
> --- a/rust/kernel/dma_buf/dma_fence.rs
> +++ b/rust/kernel/dma_buf/dma_fence.rs
> @@ -17,6 +17,7 @@
>      error::to_result,
>      prelude::*,
>      types::ForeignOwnable,
> +    types::NotThreadSafe,
>      types::Opaque, //
>  };

[Severity: Low]
This isn't a bug, but per Documentation/rust/coding-guidelines.rst,
multiple items imported from crate::types should be grouped in nested
braces:

    types::{
        ForeignOwnable,
        NotThreadSafe,
        Opaque, //
    },

Also, in the DriverFence doc example below, the SignallingSection entry at
the end of the dma_buf::{ ... } import list is missing the trailing "//"
comment that keeps rustfmt from collapsing the block.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1

Reply via email to