pinkbyte-overlay/x11-drivers/nvidia-drivers/files/nvidia-drivers-260.19.44-2.6.39.patch

15 lines
591 B
Diff
Raw Normal View History

2011-09-07 21:52:54 +04:00
linux/smp_lock.h no longer exists in linux-2.6.39+
--- a/kernel/nv-linux.h
+++ b/kernel/nv-linux.h
@@ -87,7 +87,9 @@
#if !defined(KERNEL_2_4)
#include <linux/sched.h> /* suser(), capable() replacement */
#include <linux/moduleparam.h> /* module_param() */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
#include <linux/smp_lock.h> /* kernel_locked */
+#endif
#include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
#include <asm/kmap_types.h> /* page table entry lookup */
#endif