]> git.baikalelectronics.ru Git - kernel.git/commit
stm class: Use correct UUID APIs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Apr 2021 09:15:55 +0000 (12:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 05:26:50 +0000 (07:26 +0200)
commitcf63dcef6d84b67fe873a84d1075e64a9db6bb50
treea464ac628be498ffbde8b963041c70a36df3dd64
parent2cff9b7fc7138ee2683e9787298dae60319d4130
stm class: Use correct UUID APIs

It appears that the STM code didn't manage to accurately decypher the
delicate inner workings of an alternative thought process behind the
UUID API and directly called generate_random_uuid() that clearly needs
to be a static function in lib/uuid.c.

At the same time, said STM code is poking directly at the byte array
inside the uuid_t when it uses the UUID for its internal purposes.

Fix these two transgressions by using intended APIs instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[ash: changed back to uuid_t and updated the commit message]
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lore.kernel.org/r/20210415091555.88085-1-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/stm/p_sys-t.c