Re: [PATCH v7 2/6] rust: irq: add flags module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alice,

[…]

> +
> +    const fn new(value: u32) -> Self {
> +        build_assert!(value as u64 <= c_ulong::MAX as u64);
> +        Self(value as c_ulong)
> +    }
> +}

Sanity check here, is this what you meant?

— Daniel






[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux