Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Fix compile error in keyed stream for newer linux kernels
Patrick G. Bridges [Thu, 6 Oct 2011 20:34:06 +0000 (14:34 -0600)]
linux_module/iface-keyed-stream.c

index fc0e1b9..bb19e70 100644 (file)
@@ -876,7 +876,6 @@ static unsigned int keyed_stream_poll_user(struct file *filp, poll_table *wait)
     return 0;
 }
 
-
 static int keyed_stream_ioctl_user(struct inode *inode, struct file *filp, unsigned int ioctl, unsigned long arg)
 {
     void __user *argp = (void __user *)arg;
@@ -986,6 +985,11 @@ static int keyed_stream_ioctl_user(struct inode *inode, struct file *filp, unsig
     }
 }
 
+static long keyed_stream_compat_ioctl_user(struct file * filp, unsigned int ioctl, unsigned long arg)
+{
+       return keyed_stream_ioctl_user(NULL, filp, ioctl, arg);
+}
+
 static int keyed_stream_release_user(struct inode *inode, struct file *filp)
 {
     struct user_keyed_stream *s = filp->private_data;
@@ -1007,7 +1011,11 @@ static int keyed_stream_release_user(struct inode *inode, struct file *filp)
 
 static struct file_operations user_keyed_stream_fops = {
     .poll = keyed_stream_poll_user,
+#ifdef HAVE_COMPAT_IOCTL
+    .compat_ioctl = keyed_stream_compat_ioctl_user,
+#else
     .ioctl = keyed_stream_ioctl_user,
+#endif
     .release = keyed_stream_release_user,
 };