Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -ruN ./kmods.orig/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c ./kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c
- --- ./kmods.orig/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c 2013-07-17 06:24:56.000000000 +0400
- +++ ./kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c 2013-08-20 18:21:39.896669656 +0400
- @@ -412,13 +412,12 @@
- goto out;
- }
- - p = create_proc_entry("sf_list", S_IFREG | S_IRUGO, proc_prlfs);
- + p = proc_create("sf_list", S_IFREG | S_IRUGO, proc_prlfs, &proc_sf_operations);
- if (p == NULL) {
- remove_proc_entry("fs/prl_fs", NULL);
- ret = -ENOMEM;
- goto out;
- }
- - p->proc_fops = &proc_sf_operations;
- out:
- return ret;
- }
- 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
- --- ./kmods.orig/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c 2013-07-17 06:24:57.000000000 +0400
- +++ ./kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c 2013-08-20 18:25:00.613336714 +0400
- @@ -19,6 +19,7 @@
- #include <linux/seq_file.h>
- #include <linux/workqueue.h>
- #include <linux/namei.h>
- +#include <linux/slab.h>
- #include <asm/uaccess.h>
- /**
- @@ -393,10 +394,9 @@
- int __init init_module(void)
- {
- struct proc_dir_entry *entry;
- - entry = create_proc_entry("driver/prl_freeze", S_IFREG|0664, NULL);
- + entry = proc_create("driver/prl_freeze", S_IFREG|0664, NULL, &freeze_ops);
- if (!entry)
- return -ENOMEM;
- - entry->proc_fops = &freeze_ops;
- return 0;
- }
- diff -ruN ./kmods.orig/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c ./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c
- --- ./kmods.orig/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c 2013-07-17 06:25:03.000000000 +0400
- +++ ./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c 2013-08-20 18:19:50.013311509 +0400
- @@ -793,7 +793,7 @@
- loff_t *ppos)
- {
- const struct inode *ino = file->f_dentry->d_inode;
- - struct tg_dev *dev = PDE(ino)->data;
- + struct tg_dev *dev = PDE_DATA(ino);
- TG_REQ_DESC sdesc;
- TG_REQUEST hdr, *src;
- TG_BUFFER *sbuf = NULL;
- @@ -1300,12 +1300,10 @@
- /* enable interrupt */
- tg_out32(dev, TG_PORT_MASK, TG_MASK_COMPLETE);
- - p = create_proc_entry(proc_file, S_IWUGO, NULL);
- - if (p) {
- - p->proc_fops = board_info[dev->board].fops;
- - p->data = dev;
- + p = proc_create_data(proc_file, S_IWUGO, NULL, board_info[dev->board].fops, dev);
- + if (p)
- PROC_OWNER(p, THIS_MODULE);
- - } else
- + else
- printk(KERN_WARNING "cannot create %s proc entry\n", proc_file);
- printk(KERN_INFO "detected %s, base addr %08lx, IRQ %d\n",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement