Code: Select all
* Gentoo supports kernels which are supported by NVIDIA
* which are limited to the following kernels:
* <sys-kernel/gentoo-sources-3.11
* <sys-kernel/vanilla-sources-3.11
*
* You are free to utilize epatch_user to provide whatever
* support you feel is appropriate, but will not receive
* support as a result of those changes.
*
* Do not file a bug report about this.You have already keyworded and emerged >=sys-kernel/gentoo-sources-3.11.6 and used eselect to select the new kernel.
The solution:
Code: Select all
mkdir -p /etc/portage/patches/x11-drivers/nvidia-drivers-331.17/Code: Select all
--- a/kernel/nv-linux.h 2013-10-27 23:23:30.290956283 +0100
+++ b/kernel/nv-linux.h 2013-10-27 23:25:11.366952961 +0100
@@ -956,7 +956,11 @@
#endif
#if !defined(NV_VMWARE)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
+#define NV_NUM_PHYSPAGES get_num_physpages()
+#else
#define NV_NUM_PHYSPAGES num_physpages
+#endif
#define NV_GET_CURRENT_PROCESS() current->tgid
#define NV_IN_ATOMIC() in_atomic()
#define NV_LOCAL_BH_DISABLE() local_bh_disable()


