Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nvidia-kernel-dkms patch 3.19
Index: nvidia-graphics-drivers/nv-drm.c
===================================================================
--- nvidia-graphics-drivers.orig/nv-drm.c
+++ nvidia-graphics-drivers/nv-drm.c
@@ -128,6 +128,10 @@ static struct drm_driver nv_drm_driver =
.gem_prime_vmap = nv_gem_prime_vmap,
.gem_prime_vunmap = nv_gem_prime_vunmap,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0)
+ .set_busid = drm_pci_set_busid,
+#endif
+
.name = "nvidia-drm",
.desc = "NVIDIA DRM driver",
.date = "20130102",
Index: nvidia-graphics-drivers/nv-frontend.c
===================================================================
--- nvidia-graphics-drivers.orig/nv-frontend.c
+++ nvidia-graphics-drivers/nv-frontend.c
@@ -327,7 +327,7 @@ long nvidia_frontend_unlocked_ioctl(
unsigned long i_arg
)
{
- return nvidia_frontend_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
+ return nvidia_frontend_ioctl(file->f_path.dentry->d_inode, file,
cmd, i_arg);
}
long nvidia_frontend_compat_ioctl(
@@ -336,7 +336,7 @@ long nvidia_frontend_compat_ioctl(
unsigned long i_arg
)
{
- return nvidia_frontend_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
+ return nvidia_frontend_ioctl(file->f_path.dentry->d_inode, file,
cmd, i_arg);
}
int nvidia_frontend_mmap(
Index: nvidia-graphics-drivers/nv.c
===================================================================
--- nvidia-graphics-drivers.orig/nv.c
+++ nvidia-graphics-drivers/nv.c
@@ -1824,7 +1824,7 @@ nvidia_unlocked_ioctl(
unsigned long i_arg
)
{
- return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
+ return nvidia_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg);
}
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment