Whamcloud - gitweb
* #ifdef for extra proc_dointvec parameter under linux 2.6.8 in ranal and
[fs/lustre-release.git] / lnet / klnds / openiblnd / openiblnd.c
index 3862c5b..d0385a6 100644 (file)
@@ -821,9 +821,15 @@ kibnal_stop_ip_listener(int clear_acceptq)
         }
 }
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8)
 int 
 kibnal_listener_procint(ctl_table *table, int write, struct file *filp,
                         void *buffer, size_t *lenp)
+#else
+int 
+kibnal_listener_procint(ctl_table *table, int write, struct file *filp,
+                        void *buffer, size_t *lenp, loff_t *ppos)
+#endif
 {
         int   *tunable = (int *)table->data;
         int    old_val;
@@ -839,8 +845,11 @@ kibnal_listener_procint(ctl_table *table, int write, struct file *filp,
                  tunable == &kibnal_tunables.kib_backlog);
         old_val = *tunable;
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,8)
         rc = proc_dointvec(table, write, filp, buffer, lenp);
-
+#else
+        rc = proc_dointvec(table, write, filp, buffer, lenp, ppos);
+#endif
         if (write &&
             (*tunable != old_val ||
              kibnal_data.kib_listener_sock == NULL)) {