lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <229a3c3f-aad3-48b7-8d04-18ee1ab8c9fb@gmail.com>
Date: Mon, 4 Nov 2024 12:31:16 +0200
From: Abdiel Janulgue <abdiel.janulgue@...il.com>
To: Alice Ryhl <aliceryhl@...gle.com>,
 Abdiel Janulgue <abdiel.janulgue@...il.com>
Cc: rust-for-linux@...r.kernel.org, daniel.almeida@...labora.com,
 a.hindborg@...nel.org, linux-kernel@...r.kernel.org, dakr@...hat.com,
 airlied@...hat.com, miguel.ojeda.sandonis@...il.com, wedsonaf@...il.com,
 Andreas Hindborg <a.hindborg@...sung.com>
Subject: Re: [PATCH v3 2/2] rust: add dma coherent allocator abstraction.



On 04/11/2024 12:00, Alice Ryhl wrote:
> 
> You'll need your own trait, or you can build_assert! that the size is
> non-zero in the constructor. 

I think we can catch this in the constructor. I'll try the build_assert! 
approach first as it's simpler.

/Abdiel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ