From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Shradha Gupta <shradhagupta@linux.microsoft.com>
Date: Fri, 30 Sep 2022 08:01:38 +0200
Subject: drivers: hv: dxgkrnl: restore `uuid_le_cmp` removed from upstream in
 f5b3c341a

---
 drivers/hv/dxgkrnl/dxgmodule.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/hv/dxgkrnl/dxgmodule.c b/drivers/hv/dxgkrnl/dxgmodule.c
index f419597f711a..1deef95a79cf 100644
--- a/drivers/hv/dxgkrnl/dxgmodule.c
+++ b/drivers/hv/dxgkrnl/dxgmodule.c
@@ -27,6 +27,12 @@
 #undef dev_fmt
 #define dev_fmt(fmt)	"dxgk: " fmt
 
+// Was removed from include/linux/uuid.h in f5b3c341a: "mei: Move uuid_le_cmp() to its only user" -- this would be the 2nd user ;-)
+static inline int uuid_le_cmp(const guid_t u1, const guid_t u2)
+{
+	return memcmp(&u1, &u2, sizeof(guid_t));
+}
+
 /*
  * Interface from dxgglobal
  */
-- 
Armbian

