mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
31 lines
898 B
Diff
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
|
|
|