Skip to content

Commit

Permalink
mei: Move uuid_le_cmp() to its only user
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Feb 3, 2023
1 parent 196db6b commit f5b3c34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions drivers/misc/mei/mei_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
#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"

Expand Down
5 changes: 0 additions & 5 deletions include/linux/uuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f5b3c34

Please sign in to comment.