Skip to content

Instantly share code, notes, and snippets.

@mche
Created November 23, 2016 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mche/ee3e3b4592d9ade688ed2d864b2cbd4a to your computer and use it in GitHub Desktop.
Save mche/ee3e3b4592d9ade688ed2d864b2cbd4a to your computer and use it in GitHub Desktop.
mkdir -p /etc/portage/patches/x11-drivers/nvidia-drivers-304.132 && cd $_
wget http://pastebin.calculate-linux.ru/ru/raw/13365 -O nv-linux.h.patch
emerge -av =x11-drivers/nvidia-drivers-304.132
--- a/kernel/nv-linux.h
+++ b/kernel/nv-linux.h
@@ -256,6 +256,15 @@
#include <linux/seq_file.h>
#endif
+/*
+ * As of version 304.131, os-agp.c and os-mtrr.c still use deprecated
+ * kernel APIs for mtrr which are no longer exported since 4.3, causing
+ * the module to error out when loaded.
+ */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)
+#undef CONFIG_MTRR
+#endif
+
#if !defined(NV_VMWARE) && defined(CONFIG_MTRR)
#include <asm/mtrr.h>
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment