Am 23/03/2024 um 02:51 schrieb Masaru Nomiya:
Hello,
Also, treat me as spammers!
In the Message;
Subject : Again: error with kernel 6.8.1-1 when compiling nVidia (was: Re: Again: kernel-default-6.2.1-1.1 / 20230304-0 breaks nVidia) Message-ID : <b7aabbdb-55be-489d-9974-b4fd01698615@yahoo.de> Date & Time: Sat, 23 Mar 2024 01:16:44 +0100
[PM] == Peter Maffter via openSUSE Users <users@lists.opensuse.org> has written:
[...] PM> nvidia-drm-drv.c : line 661:
PM> static const struct drm_ioctl_desc nv_drm_ioctls[] = { PM> #if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE) PM> DRM_IOCTL_DEF_DRV(NVIDIA_GEM_IMPORT_NVKMS_MEMORY, PM> nv_drm_gem_import_nvkms_memory_ioctl, PM> DRM_UNLOCKED), <------------------------------! PM> #endif /* NV_DRM_ATOMIC_MODESET_AVAILABLE */
How about this?
static const struct drm_ioctl_desc nv_drm_ioctls[] = { #if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE) DRM_IOCTL_DEF_DRV(NVIDIA_GEM_IMPORT_NVKMS_MEMORY, nv_drm_gem_import_nvkms_memory_ioctl, DRM_RENDER_ALLOW|DRM_UNLOCKED), #endif /* NV_DRM_ATOMIC_MODESET_AVAILABLE */
See my last post: /usr/src/kernel-modules/nvidia-390.157-default/nvidia-drm/nvidia-drm-drv.c:661:23: error: ‘DRM_UNLOCKED’ undeclared here (not in a function); did you mean ‘VM_LOCKED’? 661 | DRM_UNLOCKED), | ^~~~~~~~~~~~ "DRM_RENDER_ALLOW|DRM_UNLOCKED" would not help because DRM_UNLOCKED was thrown out of the code. BR