commit af64907a58099f1875f7e4d420e20bf0b6f363dd
Author: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
Date: Mon Aug 19 16:04:19 2024 +0200
Fix warning: old style declaration
Signed-off-by: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
...d-0091-fix_warning_old_style_declaration_.patch | 35 ++++++++++++++++++++++
nvidia-390xx-kmod.spec | 2 ++
2 files changed, 37 insertions(+)
---
diff --git a/nvidia-390xx-kmod-0091-fix_warning_old_style_declaration_.patch
b/nvidia-390xx-kmod-0091-fix_warning_old_style_declaration_.patch
new file mode 100644
index 0000000..0fbd615
--- /dev/null
+++ b/nvidia-390xx-kmod-0091-fix_warning_old_style_declaration_.patch
@@ -0,0 +1,35 @@
+diff --git a/kernel/nvidia-uvm/uvm8_pascal_mmu.c b/kernel/nvidia-uvm/uvm8_pascal_mmu.c
+index 5719fa4..85a1018 100644
+--- a/kernel/nvidia-uvm/uvm8_pascal_mmu.c
++++ b/kernel/nvidia-uvm/uvm8_pascal_mmu.c
+@@ -169,7 +169,7 @@ static NvLength entry_size_pascal(NvU32 depth)
+
+ static NvU32 index_bits_pascal(NvU32 depth, NvU32 page_size)
+ {
+- const static NvU32 bit_widths[] = {2, 9, 9, 8};
++ static const NvU32 bit_widths[] = {2, 9, 9, 8};
+ // some code paths keep on querying this until they get a 0, meaning only the page
offset remains.
+ UVM_ASSERT(depth < 5);
+ if (depth < 4) {
+diff --git a/kernel/nvidia/nv-mmap.c b/kernel/nvidia/nv-mmap.c
+index 392a5e4..1888985 100644
+--- a/kernel/nvidia/nv-mmap.c
++++ b/kernel/nvidia/nv-mmap.c
+@@ -271,7 +271,7 @@ int nv_encode_caching(
+ return 0;
+ }
+
+-int static nvidia_mmap_peer_io(
++static int nvidia_mmap_peer_io(
+ struct vm_area_struct *vma,
+ nv_alloc_t *at,
+ NvU64 page_index,
+@@ -292,7 +292,7 @@ int static nvidia_mmap_peer_io(
+ return ret;
+ }
+
+-int static nvidia_mmap_sysmem(
++static int nvidia_mmap_sysmem(
+ struct vm_area_struct *vma,
+ nv_alloc_t *at,
+ NvU64 page_index,
diff --git a/nvidia-390xx-kmod.spec b/nvidia-390xx-kmod.spec
index b4f218e..de0f5c5 100644
--- a/nvidia-390xx-kmod.spec
+++ b/nvidia-390xx-kmod.spec
@@ -104,6 +104,7 @@ Patch153:
nvidia-390xx-kmod-0087-undef-NV_DRM_REINIT_PRIMARY_MODE_GROUP_PRESENT-
Patch154:
nvidia-390xx-kmod-0088-undef-NV_DRM_ATOMIC_HELPER_CONNECTOR_DPMS_PRESENT-in-conftest_sh.patch
Patch155: nvidia-390xx-kmod-0089-kernel-6.10-removed-follow_pfn-function.patch
Patch156:
nvidia-390xx-kmod-0090-fix_warning_suggested_braces_around_empty_body_in_if.patch
+Patch157: nvidia-390xx-kmod-0091-fix_warning_old_style_declaration_.patch
# build system updates
Patch30: use-kbuild-compiler.patch
@@ -223,6 +224,7 @@ tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{versi
%patch -P 155 -p1 -b 155
%patch -P 156 -p1 -b 156
+%patch -P 157 -p1 -b 157
%ifarch armv7hl
%patch -P 40 -p1 -b 40 -d kernel
Show replies by date