getting error on nvidia
Scriptlet output:
Autoinstall of module nvidia/565.77 for kernel 6.13.0-cachyos3.fc41.x86_64 (x86_64)
Sign command: /lib/modules/6.13.0-cachyos3.fc41.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Cleaning build area... done.
Building module(s)............(bad exit status: 2)
Failed command:
'make' -j2 -C kernel-open KERNEL_UNAME=6.13.0-cachyos3.fc41.x86_64 modules
Error! Bad return status for module build on kernel: 6.13.0-cachyos3.fc41.x86_64 (x86_64)
Consult /var/lib/dkms/nvidia/565.77/build/make.log for more information.
Autoinstall on 6.13.0-cachyos3.fc41.x86_64 failed for module(s) nvidia(10).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
CONFTEST: ib_peer_memory_symbols
CC [M] nvidia/nv.o
CC [M] nvidia/nv-pci.o
In file included from ././common/inc/nv-pci.h:28,
from nvidia/nv-pci.c:26:
nvidia/nv-pci.c: In function ‘nv_pci_probe’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wemp>
579 | NV_MEMDBG_ADD(ptr, size); \
| ^
nvidia/nv-pci.c:728:5: note: in expansion of macro ‘NV_KZALLOC’
728 | NV_KZALLOC(nvl, sizeof(nv_linux_state_t));
| ^~~~~~~~~~
In file included from /usr/src/kernels/6.13.0-cachyos3.fc41.x86_64/include/linux/module.h:22,
from nvidia/nv.c:24:
nvidia/nv.c:130:18: error: expected ‘,’ or ‘;’ before ‘DMA_BUF’
130 | MODULE_IMPORT_NS(DMA_BUF);
| ^~~~~~~
/usr/src/kernels/6.13.0-cachyos3.fc41.x86_64/include/linux/moduleparam.h:26:61: note: in definition of >
26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info
| ^~~~
/usr/src/kernels/6.13.0-cachyos3.fc41.x86_64/include/linux/module.h:299:33: note: in expansion of macro>
299 | #define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns)
| ^~~~~~~~~~~
nvidia/nv.c:130:1: note: in expansion of macro ‘MODULE_IMPORT_NS’
130 | MODULE_IMPORT_NS(DMA_BUF);
| ^~~~~~~~~~~~~~~~
In file included from nvidia/nv.c:34:
nvidia/nv.c: In function ‘nvos_create_alloc’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wemp>
579 | NV_MEMDBG_ADD(ptr, size); \
| ^
nvidia/nv.c:323:5: note: in expansion of macro ‘NV_KZALLOC’
323 | NV_KZALLOC(at, sizeof(nv_alloc_t));
| ^~~~~~~~~~
nvidia/nv.c: In function ‘nv_alloc_file_private’:
././common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wemp>
^G Help ^O Write Out ^F Where Is ^K Cut ^T Execute ^C Location M-U Undo
^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line M-E Redo