Permalink
Browse files

xf86-video-nvidia-legacy: add patch for kernel 4.3 support

  • Loading branch information...
1 parent e0dee4f commit 0c863255d905a0499cc8a3064b606818b794a6ce @MilhouseVH MilhouseVH committed Oct 18, 2015
@@ -0,0 +1,28 @@
+--- a/kernel/nv-procfs.c 2015-10-18 04:32:24.214891836 +0100
++++ b/kernel/nv-procfs.c 2015-10-18 04:33:01.611081468 +0100
+@@ -607,7 +607,12 @@
+ registry_keys = ((nvl != NULL) ?
+ nvl->registry_keys : nv_registry_keys);
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
+ return seq_printf(s, "Binary: \"%s\"\n", registry_keys);
++#else
++ seq_printf(s, "Binary: \"%s\"\n", registry_keys);
++ return 0;
++#endif
+ }
+
+ static ssize_t
+@@ -674,7 +679,12 @@
+ void *v
+ )
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
+ return seq_puts(s, s->private);
++#else
++ seq_puts(s, s->private);
++ return 0;
++#endif
+ }
+
+ NV_DEFINE_PROCFS_SINGLE_FILE(text_file);

0 comments on commit 0c86325

Please sign in to comment.