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: <20220802200430.qiyy2utts4lai3ac@liuwe-devbox-debian-v2>
Date:   Tue, 2 Aug 2022 20:04:30 +0000
From:   Wei Liu <wei.liu@...nel.org>
To:     Konstantin Shelekhin <k.shelekhin@...ro.com>
Cc:     ojeda@...nel.org, linux-kernel@...r.kernel.org,
        rust-for-linux@...r.kernel.org, Wei Liu <wei.liu@...nel.org>
Subject: Re: [PATCH v8 28/31] samples: add Rust examples

On Tue, Aug 02, 2022 at 05:07:56PM +0300, Konstantin Shelekhin wrote:
> > +module! {
> > +    type: RustSemaphore,
> > +    name: b"rust_semaphore",
> > +    author: b"Rust for Linux Contributors",
> > +    description: b"Rust semaphore sample",
> > +    license: b"GPL",
> > +}
> 
> A minor neat, but ain't it possible to use &str here in order to drop
> this ugly binary string prefix?

Their types are different. One is for u8. The other is for UTF-8.

Thanks,
Wei.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ