Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:garloff:OTC
xen_uvp
classic-xen-miscdev.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File classic-xen-miscdev.diff of Package xen_uvp
--- linux-4.1/drivers/xen/xenbus/xenbus_probe.h.orig 2015-08-19 10:51:20.907076765 +0200 +++ linux-4.1/drivers/xen/xenbus/xenbus_probe.h 2016-03-13 15:04:24.650963211 +0100 @@ -119,4 +119,6 @@ extern int xenbus_read_otherend_details( void xenbus_ring_ops_init(void); +extern const struct file_operations xenbus_dev_file_ops; + #endif --- linux-4.1/drivers/xen/xenbus/xenbus_dev.c.orig 2015-08-19 10:51:09.704076646 +0200 +++ linux-4.1/drivers/xen/xenbus/xenbus_dev.c 2016-03-13 15:04:42.874962680 +0100 @@ -485,7 +485,7 @@ static long xenbus_dev_ioctl(struct file } #endif -static const struct file_operations xenbus_dev_file_ops = { +const struct file_operations xenbus_dev_file_ops = { .read = xenbus_dev_read, .write = xenbus_dev_write, .open = xenbus_dev_open, --- linux-4.1/drivers/xen/xenbus/xenbus_probe.c.orig 2015-08-19 10:51:26.797076828 +0200 +++ linux-4.1/drivers/xen/xenbus/xenbus_probe.c 2016-03-13 16:25:01.026822504 +0100 @@ -50,6 +50,7 @@ #include <linux/io.h> #include <linux/slab.h> #include <linux/module.h> +#include <linux/miscdevice.h> #include <asm/page.h> #include <asm/pgtable.h> @@ -1344,6 +1345,14 @@ static struct notifier_block xenbus_resu }; #endif +#ifndef CONFIG_XEN_COMPAT_XENFS +static struct miscdevice xenbus_misc_dev = { + .minor = MISC_DYNAMIC_MINOR, + .name = "xen/xenbus", + .fops = &xenbus_dev_file_ops, +}; +#endif + #ifndef MODULE static int __init #else @@ -1494,7 +1503,14 @@ xenbus_init(void) */ proc_mkdir("xen", NULL); #endif - +#ifndef CONFIG_XEN_COMPAT_XENFS + /* Also register /dev/xen/xenbus */ + err = misc_register(&xenbus_misc_dev); + if (err) { + printk(KERN_ERR "Could not register xenbus device\n"); + goto out_error; + } +#endif return 0; out_error:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor