lkml.org 
[lkml]   [2017]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] nvme: use uuid_t in nvme_ns
On Sat, Jun 10, 2017 at 4:03 PM, Johannes Thumshirn <jthumshirn@suse.de> wrote:

> struct nvme_ns still uses u u8 uuid[16], change it to using uuid_t.

...and we can convert to use UUID API.

> - memcpy(ns->uuid, data + pos + sizeof(*cur), len);
> + memcpy(&ns->uuid, data + pos + sizeof(*cur), len);

uuid_copy()

> - if (!memchr_inv(ns->uuid, 0, sizeof(ns->uuid))) {
> + if (!memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {

uuid_is_null()

> - if (!memchr_inv(ns->uuid, 0, sizeof(ns->uuid)) ||
> + if (!memchr_inv(&ns->uuid, 0, sizeof(ns->uuid)) ||

Ditto.

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2017-06-12 01:55    [W:0.026 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site