diff --git a/x11-drivers/nvidia-drivers/files/4.3_kernel.patch b/x11-drivers/nvidia-drivers/files/4.3_kernel.patch new file mode 100644 index 00000000..097aa9c1 --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/4.3_kernel.patch @@ -0,0 +1,22 @@ +--- kernel/nv-procfs.c 2015-11-10 17:06:27.982384266 +0300 ++++ kernel/nv-procfs.c 2015-11-10 17:05:59.932593512 +0300 +@@ -356,7 +356,8 @@ + registry_keys = ((nvl != NULL) ? + nvl->registry_keys : nv_registry_keys); + +- return seq_printf(s, "Binary: \"%s\"\n", registry_keys); ++ seq_printf(s, "Binary: \"%s\"\n", registry_keys); ++ return 0; + } + + static ssize_t +@@ -552,7 +553,8 @@ + void *v + ) + { +- return seq_puts(s, s->private); ++ seq_puts(s, s->private); ++ return 0; + } + + NV_DEFINE_PROCFS_SINGLE_FILE(text_file); diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-331.113.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-331.113.ebuild index cb3ecee5..953524aa 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-331.113.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-331.113.ebuild @@ -184,6 +184,10 @@ src_prepare() { epatch "${FILESDIR}"/4.0_kernel.patch fi + if kernel_is ge 4 3 0 ; then + epatch "${FILESDIR}"/4.3_kernel.patch + fi + # If greater than 2.6.5 use M= instead of SUBDIR= # convert_to_m "${NV_SRC}"/Makefile.kbuild fi