Commit f5b3c341 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

mei: Move uuid_le_cmp() to its only user

There is only a single user of uuid_le_cmp() API, let's make it private
to that user.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230202145412.87569-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 196db6bb
...@@ -13,6 +13,11 @@ ...@@ -13,6 +13,11 @@
#include <linux/mei.h> #include <linux/mei.h>
#include <linux/mei_cl_bus.h> #include <linux/mei_cl_bus.h>
static inline int uuid_le_cmp(const uuid_le u1, const uuid_le u2)
{
return memcmp(&u1, &u2, sizeof(uuid_le));
}
#include "hw.h" #include "hw.h"
#include "hbm.h" #include "hbm.h"
......
...@@ -110,9 +110,4 @@ int uuid_parse(const char *uuid, uuid_t *u); ...@@ -110,9 +110,4 @@ int uuid_parse(const char *uuid, uuid_t *u);
/* MEI UUID type, don't use anywhere else */ /* MEI UUID type, don't use anywhere else */
#include <uapi/linux/uuid.h> #include <uapi/linux/uuid.h>
static inline int uuid_le_cmp(const uuid_le u1, const uuid_le u2)
{
return memcmp(&u1, &u2, sizeof(uuid_le));
}
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment