14 lines
599 B
Diff
14 lines
599 B
Diff
linux/smp_lock.h no longer exists in linux-2.6.39+
|
|
|
|
--- a/usr/src/nv/nv-linux.h
|
|
+++ b/usr/src/nv/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
|