From: Andy Shevchenko Date: Thu, 23 Apr 2020 15:32:11 +0000 (+0300) Subject: zonefs: Replace uuid_copy() with import_uuid() X-Git-Tag: v5.8-rc1~148^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=568776f992c4cb5e1b5715dc4ab62e6ae906b80d;p=thirdparty%2Flinux.git zonefs: Replace uuid_copy() with import_uuid() 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 Reviewed-by: Chaitanya Kulkarni Reviewed-by: Johannes Thumshirn Signed-off-by: Damien Le Moal --- diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index 3ce9829a6936d..25b8a924517c9 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1267,7 +1267,7 @@ static int zonefs_read_super(struct super_block *sb) goto unmap; } - uuid_copy(&sbi->s_uuid, (uuid_t *)super->s_uuid); + import_uuid(&sbi->s_uuid, super->s_uuid); ret = 0; unmap: