Fixed compiler error for kernel versions < 2.6.23.
authorFlorian Pose <fp@igh-essen.com>
Thu, 12 May 2011 08:40:22 +0200
changeset 2061 7982704c8599
parent 2051 3a066ec73fb2
child 2062 9cc8f64726bb
Fixed compiler error for kernel versions < 2.6.23.
master/cdev.c
--- a/master/cdev.c	Tue Jan 18 16:45:26 2011 +0100
+++ b/master/cdev.c	Thu May 12 08:40:22 2011 +0200
@@ -3879,6 +3879,7 @@
     unsigned long offset;
     struct page *page = NOPAGE_SIGBUS;
     ec_cdev_priv_t *priv = (ec_cdev_priv_t *) vma->vm_private_data;
+    ec_master_t *master = priv->cdev->master;
 
     offset = (address - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT);
 
@@ -3887,7 +3888,7 @@
 
     page = vmalloc_to_page(priv->process_data + offset);
 
-    EC_MASTER_DBG(master, "Nopage fault vma, address = %#lx,"
+    EC_MASTER_DBG(master, 1, "Nopage fault vma, address = %#lx,"
             " offset = %#lx, page = %p\n", address, offset, page);
 
     get_page(page);