OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe35ec5
)
partitions/ldm: Replace uuid_copy() with import_uuid() where it makes sense
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 22 Apr 2020 13:03:17 +0000
(16:03 +0300)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 18 Jun 2020 15:17:54 +0000
(09:17 -0600)
There is a specific API to treat raw data as UUID, i.e. import_uuid().
Use it instead of uuid_copy() with explicit casting.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/ldm.c
patch
|
blob
|
history
diff --git
a/block/partitions/ldm.c
b/block/partitions/ldm.c
index
6fdfcb4
..
d333786
100644
(file)
--- a/
block/partitions/ldm.c
+++ b/
block/partitions/ldm.c
@@
-910,7
+910,7
@@
static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
return false;
disk = &vb->vblk.disk;
-
uuid_copy(&disk->disk_id, (uuid_t *)(buffer + 0x18 + r_name)
);
+
import_uuid(&disk->disk_id, buffer + 0x18 + r_name
);
return true;
}