linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] : Switch to use new generic UUID API
@ 2019-01-10 14:30 Andy Shevchenko
  2019-01-21  8:47 ` Christoph Hellwig
  0 siblings, 1 reply; 10+ messages in thread
From: Andy Shevchenko @ 2019-01-10 14:30 UTC (permalink / raw)
  To: Matias Bjorling, linux-block, Christoph Hellwig, linux-kernel
  Cc: Andy Shevchenko

There are new types and helpers that are supposed to be used in new code.

As a preparation to get rid of legacy types and API functions do
the conversion here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/lightnvm/pblk.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
index 85e38ed62f85..0a0aeb6ef314 100644
--- a/drivers/lightnvm/pblk.h
+++ b/drivers/lightnvm/pblk.h
@@ -1362,10 +1362,7 @@ static inline unsigned int pblk_get_secs(struct bio *bio)
 
 static inline void pblk_setup_uuid(struct pblk *pblk)
 {
-	uuid_le uuid;
-
-	uuid_le_gen(&uuid);
-	memcpy(pblk->instance_uuid, uuid.b, 16);
+	guid_gen((guid_t *)&pblk->instance_uuid);
 }
 
 static inline char *pblk_disk_name(struct pblk *pblk)
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-01-24 16:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 14:30 [PATCH v1] : Switch to use new generic UUID API Andy Shevchenko
2019-01-21  8:47 ` Christoph Hellwig
2019-01-24 12:16   ` Andy Shevchenko
2019-01-24 13:17     ` Javier González
2019-01-24 13:36       ` Andy Shevchenko
2019-01-24 13:45         ` Javier González
2019-01-24 14:13           ` Andy Shevchenko
2019-01-24 14:36             ` Javier González
2019-01-24 16:38               ` Andy Shevchenko
2019-01-24 16:41                 ` Javier González

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).