Skip to content
Commit ef40dda5 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

uuid: hoist uuid_is_null() helper from libnvdimm



Hoist the libnvdimm helper as an inline helper to linux/uuid.h
using an auxiliary const variable uuid_null in lib/uuid.c.

[hch: also add the guid variant.  Both do the same but I'd like
to keep casts to a minimum]

The common helper uses the new abstract type uuid_t * instead of
u8 *.

Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
[hch: added guid_is_null]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarDan Williams <dan.j.williams@intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent df33767d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment