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] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250501.210224.1459267327368250719.fujita.tomonori@gmail.com>
Date: Thu, 01 May 2025 21:02:24 +0900 (JST)
From: FUJITA Tomonori <fujita.tomonori@...il.com>
To: miguel.ojeda.sandonis@...il.com
Cc: fujita.tomonori@...il.com, rust-for-linux@...r.kernel.org,
 linux-kernel@...r.kernel.org, a.hindborg@...sung.com,
 boqun.feng@...il.com, frederic@...nel.org, lyude@...hat.com,
 tglx@...utronix.de, anna-maria@...utronix.de, jstultz@...gle.com,
 sboyd@...nel.org, ojeda@...nel.org, alex.gaynor@...il.com,
 gary@...yguo.net, bjorn3_gh@...tonmail.com, benno.lossin@...ton.me,
 aliceryhl@...gle.com, tmgross@...ch.edu, chrisi.schrefl@...il.com,
 arnd@...db.de, linux@...linux.org.uk
Subject: Re: [PATCH v1] rust: time: Avoid 64-bit integer division

On Thu, 1 May 2025 11:24:24 +0200
Miguel Ojeda <miguel.ojeda.sandonis@...il.com> wrote:

> On Thu, May 1, 2025 at 4:45 AM FUJITA Tomonori
> <fujita.tomonori@...il.com> wrote:
>>
>> Oops, they should call ktime_to_us() and ktime_to_ms() respectively.
>>
>> I'll send v2 later.
> 
> What about adding a couple examples to their docs so that they are
> also tested and this would be caught?
> 
> (In another patch, possibly in another series or not. We could also
> open a good first issue)

I'll submit another patch to add some doctests once this is merged.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ