Advertisement
Adnako

Patch for Parallels Tools 8.0 for Linux kernel >= 3.10

Aug 20th, 2013
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.58 KB | None | 0 0
  1. diff -ruN ./kmods.orig/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c ./kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c
  2. --- ./kmods.orig/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c    2013-07-17 06:24:56.000000000 +0400
  3. +++ ./kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c 2013-08-20 18:21:39.896669656 +0400
  4. @@ -412,13 +412,12 @@
  5.         goto out;
  6.     }
  7.  
  8. -   p = create_proc_entry("sf_list", S_IFREG | S_IRUGO, proc_prlfs);
  9. +   p = proc_create("sf_list", S_IFREG | S_IRUGO, proc_prlfs, &proc_sf_operations);
  10.     if (p == NULL) {
  11.         remove_proc_entry("fs/prl_fs", NULL);
  12.         ret = -ENOMEM;
  13.         goto out;
  14.     }
  15. -   p->proc_fops = &proc_sf_operations;
  16.  out:
  17.     return ret;
  18.  }
  19. diff -ruN ./kmods.orig/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c ./kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
  20. --- ./kmods.orig/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c  2013-07-17 06:24:57.000000000 +0400
  21. +++ ./kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c   2013-08-20 18:25:00.613336714 +0400
  22. @@ -19,6 +19,7 @@
  23.  #include <linux/seq_file.h>
  24.  #include <linux/workqueue.h>
  25.  #include <linux/namei.h>
  26. +#include <linux/slab.h>
  27.  #include <asm/uaccess.h>
  28.  
  29.  /**
  30. @@ -393,10 +394,9 @@
  31.  int __init init_module(void)
  32.  {
  33.     struct proc_dir_entry *entry;
  34. -   entry = create_proc_entry("driver/prl_freeze", S_IFREG|0664, NULL);
  35. +   entry = proc_create("driver/prl_freeze", S_IFREG|0664, NULL, &freeze_ops);
  36.     if (!entry)
  37.         return -ENOMEM;
  38. -   entry->proc_fops = &freeze_ops;
  39.     return 0;
  40.  }
  41.  
  42. diff -ruN ./kmods.orig/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c ./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c
  43. --- ./kmods.orig/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c 2013-07-17 06:25:03.000000000 +0400
  44. +++ ./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c  2013-08-20 18:19:50.013311509 +0400
  45. @@ -793,7 +793,7 @@
  46.                                  loff_t *ppos)
  47.  {
  48.     const struct inode *ino = file->f_dentry->d_inode;
  49. -   struct tg_dev *dev = PDE(ino)->data;
  50. +   struct tg_dev *dev = PDE_DATA(ino);
  51.     TG_REQ_DESC sdesc;
  52.     TG_REQUEST hdr, *src;
  53.     TG_BUFFER *sbuf = NULL;
  54. @@ -1300,12 +1300,10 @@
  55.     /* enable interrupt */
  56.     tg_out32(dev, TG_PORT_MASK, TG_MASK_COMPLETE);
  57.  
  58. -   p = create_proc_entry(proc_file, S_IWUGO, NULL);
  59. -   if (p) {
  60. -       p->proc_fops = board_info[dev->board].fops;
  61. -       p->data = dev;
  62. +   p = proc_create_data(proc_file, S_IWUGO, NULL, board_info[dev->board].fops, dev);
  63. +   if (p)
  64.         PROC_OWNER(p, THIS_MODULE);
  65. -   } else
  66. +   else
  67.         printk(KERN_WARNING "cannot create %s proc entry\n", proc_file);
  68.  
  69.     printk(KERN_INFO "detected %s, base addr %08lx, IRQ %d\n",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement