libnvdimm, namespace: Drop uuid_t implementation detail
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Jun 2019 11:45:18 +0000 (14:45 +0300)
committerDan Williams <dan.j.williams@intel.com>
Fri, 5 Jul 2019 22:18:49 +0000 (15:18 -0700)
There is no need for caller to know how uuid_t type is constructed. Thus,
whenever we use it the implementation details are not needed. Drop it for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c

index a434a59..2d8d7e5 100644 (file)
@@ -1822,8 +1822,8 @@ static bool has_uuid_at_pos(struct nd_region *nd_region, u8 *uuid,
                                        && !guid_equal(&nd_set->type_guid,
                                                &nd_label->type_guid)) {
                                dev_dbg(ndd->dev, "expect type_guid %pUb got %pUb\n",
-                                               nd_set->type_guid.b,
-                                               nd_label->type_guid.b);
+                                               &nd_set->type_guid,
+                                               &nd_label->type_guid);
                                continue;
                        }
 
@@ -2227,8 +2227,8 @@ static struct device *create_namespace_blk(struct nd_region *nd_region,
        if (namespace_label_has(ndd, type_guid)) {
                if (!guid_equal(&nd_set->type_guid, &nd_label->type_guid)) {
                        dev_dbg(ndd->dev, "expect type_guid %pUb got %pUb\n",
-                                       nd_set->type_guid.b,
-                                       nd_label->type_guid.b);
+                                       &nd_set->type_guid,
+                                       &nd_label->type_guid);
                        return ERR_PTR(-EAGAIN);
                }