-
Notifications
You must be signed in to change notification settings - Fork 1
/
nvidia-390xx-kmod-0060-no-previous-prototype-in-uvm8_range_group_c.patch
37 lines (33 loc) · 1.71 KB
/
nvidia-390xx-kmod-0060-no-previous-prototype-in-uvm8_range_group_c.patch
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
28
29
30
31
32
33
34
35
36
37
diff --git a/nvidia-uvm/uvm8_range_group.c b/nvidia-uvm/uvm8_range_group.c
index 307aaa2..19760b3 100644
--- a/nvidia-uvm/uvm8_range_group.c
+++ b/nvidia-uvm/uvm8_range_group.c
@@ -29,6 +29,7 @@
#include "uvm_ioctl.h"
#include "uvmtypes.h"
#include "uvm8_api.h"
+#include "uvm8_test.h"
static struct kmem_cache *g_uvm_range_group_cache __read_mostly;
static struct kmem_cache *g_uvm_range_group_range_cache __read_mostly;
@@ -506,13 +507,13 @@ static uvm_range_group_range_t *range_group_range_container(uvm_range_tree_node_
return container_of(node, uvm_range_group_range_t, node);
}
-uvm_range_group_range_t *uvm_range_group_range_prev(uvm_va_space_t *va_space, uvm_range_group_range_t *range)
+static uvm_range_group_range_t *uvm_range_group_range_prev(uvm_va_space_t *va_space, uvm_range_group_range_t *range)
{
uvm_range_tree_node_t *node = uvm_range_tree_prev(&va_space->range_group_ranges, &range->node);
return range_group_range_container(node);
}
-uvm_range_group_range_t *uvm_range_group_range_next(uvm_va_space_t *va_space, uvm_range_group_range_t *range)
+static uvm_range_group_range_t *uvm_range_group_range_next(uvm_va_space_t *va_space, uvm_range_group_range_t *range)
{
uvm_range_tree_node_t *node = uvm_range_tree_next(&va_space->range_group_ranges, &range->node);
return range_group_range_container(node);
@@ -664,7 +665,7 @@ uvm_range_group_range_t *uvm_range_group_range_iter_next(uvm_va_space_t *va_spac
return range_group_range_container(node);
}
-void range_group_range_iter_advance(uvm_range_group_range_iter_t *iter, NvU64 end)
+static void range_group_range_iter_advance(uvm_range_group_range_iter_t *iter, NvU64 end)
{
if (iter->node == NULL) {
iter->end = end;