Files
build/patch/kernel/archive/wsl2-arm64-6.6/1708-drivers-hv-dxgkrnl-restore-uuid_le_cmp-removed-from-upstream-in-f5b3c341a.patch
2025-01-05 10:15:14 +01:00

31 lines
898 B
Diff

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 111111111111..222222222222 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