mei: Move uuid_le_cmp() to its only user
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Feb 2023 14:54:12 +0000 (16:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2023 06:23:03 +0000 (07:23 +0100)
There is only a single user of uuid_le_cmp() API, let's make it private
to that user.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230202145412.87569-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/mei_dev.h
include/linux/uuid.h

index 996b70a988becab3961efc205660bc8c9ec25c88..895011b7a0bfa223a5e974038130ccc305272902 100644 (file)
 #include <linux/mei.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 "hbm.h"
 
index 5be158a49e11f417e749a1d8f0667c83c16d1410..6b1a3efa1e0bcc6453527d7bb382db8c38f4efd1 100644 (file)
@@ -110,9 +110,4 @@ int uuid_parse(const char *uuid, uuid_t *u);
 /* MEI UUID type, don't use anywhere else */
 #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