diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-11 14:00:57 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-05 16:59:04 +0200 |
commit | df33767d9fe0ca93c606cc9042df05e5045c8158 (patch) | |
tree | 3f49d1e61e0ac89d1158bb0229b2bd7b4b996093 /lib | |
parent | b10bf0e281040f152da93fede1d43ec57caa7cee (diff) | |
download | linux-stable-df33767d9fe0ca93c606cc9042df05e5045c8158.tar.gz linux-stable-df33767d9fe0ca93c606cc9042df05e5045c8158.tar.bz2 linux-stable-df33767d9fe0ca93c606cc9042df05e5045c8158.zip |
uuid: hoist helpers uuid_equal() and uuid_copy() from xfs
These helper are used to compare and copy two uuid_t type objects.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
[hch: also provide the respective guid_ versions]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test_uuid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_uuid.c b/lib/test_uuid.c index ff36f3240e90..478c049630b5 100644 --- a/lib/test_uuid.c +++ b/lib/test_uuid.c @@ -71,7 +71,7 @@ static void __init test_uuid_test(const struct test_uuid_data *data) test_uuid_failed("conversion", false, false, data->uuid, NULL); total_tests++; - if (uuid_le_cmp(data->le, le)) { + if (!guid_equal(&data->le, &le)) { sprintf(buf, "%pUl", &le); test_uuid_failed("cmp", false, false, data->uuid, buf); } @@ -82,7 +82,7 @@ static void __init test_uuid_test(const struct test_uuid_data *data) test_uuid_failed("conversion", false, true, data->uuid, NULL); total_tests++; - if (uuid_be_cmp(data->be, be)) { + if (uuid_equal(&data->be, &be)) { sprintf(buf, "%pUb", &be); test_uuid_failed("cmp", false, true, data->uuid, buf); } |