diff options
-rw-r--r-- | drivers/xen/xenfs/Makefile | 4 | ||||
-rw-r--r-- | drivers/xen/xenfs/super.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/xen/xenfs/Makefile b/drivers/xen/xenfs/Makefile index 4a0be9a82af3..4fde9440fe1f 100644 --- a/drivers/xen/xenfs/Makefile +++ b/drivers/xen/xenfs/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | obj-$(CONFIG_XENFS) += xenfs.o | 1 | obj-$(CONFIG_XENFS) += xenfs.o |
2 | 2 | ||
3 | xenfs-y = super.o xenbus.o | 3 | xenfs-y = super.o xenbus.o privcmd.o |
4 | xenfs-$(CONFIG_XEN_DOM0) += xenstored.o privcmd.o | 4 | xenfs-$(CONFIG_XEN_DOM0) += xenstored.o |
diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c index afaa6ede0168..984891e9a394 100644 --- a/drivers/xen/xenfs/super.c +++ b/drivers/xen/xenfs/super.c | |||
@@ -101,6 +101,7 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent) | |||
101 | [1] = {}, | 101 | [1] = {}, |
102 | { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR }, | 102 | { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR }, |
103 | { "capabilities", &capabilities_file_ops, S_IRUGO }, | 103 | { "capabilities", &capabilities_file_ops, S_IRUGO }, |
104 | { "privcmd", &privcmd_file_ops, S_IRUSR|S_IWUSR }, | ||
104 | {""}, | 105 | {""}, |
105 | }; | 106 | }; |
106 | int rc; | 107 | int rc; |
@@ -114,8 +115,6 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent) | |||
114 | &xsd_kva_file_ops, NULL, S_IRUSR|S_IWUSR); | 115 | &xsd_kva_file_ops, NULL, S_IRUSR|S_IWUSR); |
115 | xenfs_create_file(sb, sb->s_root, "xsd_port", | 116 | xenfs_create_file(sb, sb->s_root, "xsd_port", |
116 | &xsd_port_file_ops, NULL, S_IRUSR|S_IWUSR); | 117 | &xsd_port_file_ops, NULL, S_IRUSR|S_IWUSR); |
117 | xenfs_create_file(sb, sb->s_root, "privcmd", | ||
118 | &privcmd_file_ops, NULL, S_IRUSR|S_IWUSR); | ||
119 | } | 118 | } |
120 | 119 | ||
121 | return rc; | 120 | return rc; |