Created
November 23, 2016 08:26
-
-
Save mche/ee3e3b4592d9ade688ed2d864b2cbd4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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