summaryrefslogtreecommitdiff
path: root/media-libs/gmmlib/files/gmmlib-22.3.7_ambiguating.patch
blob: 889573ed94a5592c446b9f35fff03aef4ca63f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
https://bugs.gentoo.org/908592
https://github.com/intel/gmmlib/issues/103
https://github.com/intel/gmmlib/pull/104

From 2526286f29d8ad3d3a5833bdc29e23e5f3300b34 Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Mon, 12 Jun 2023 11:49:51 +0200
Subject: [PATCH] Fix ambiguating new declaration LockMAContextSyncMutex()

This fixes https://github.com/intel/gmmlib/issues/103 introduced by
commit 5e12695c2c "Multi-threaded fixes for GMM Context info"

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
--- a/Source/GmmLib/inc/External/Common/GmmInfo.h
+++ b/Source/GmmLib/inc/External/Common/GmmInfo.h
@@ -627,8 +627,8 @@ typedef struct _GMM_ADAPTER_INFO_
         GMM_ADAPTER_INFO *              GetAdapterNode(ADAPTER_BDF sBdf);   // Replacement for GetAdapterIndex, now get adapter node from the linked list
 
         // Mutexes which protect the below thread unsafe functions
-        GMM_STATUS                      LockMAContextSyncMutex();
-        GMM_STATUS                      UnLockMAContextSyncMutex();
+        GMM_STATUS GMM_STDCALL          LockMAContextSyncMutex();
+        GMM_STATUS GMM_STDCALL          UnLockMAContextSyncMutex();
 
         // thread unsafe functions; these must be protected with LockMAContextSyncMutex
         GMM_ADAPTER_INFO *              GetAdapterNodeUnlocked(ADAPTER_BDF sBdf);