From: Horms Subject: [PATCH 4/4] xenbus: CONFIG_PROC_FS is needed for xenbus_probe's proc entry Date: Fri, 16 Jun 2006 16:51:13 +0900 Message-ID: <20060616075113.31276.77854.sendpatchset@harold.local.valinux.co.jp> References: <20060616075052.31276.7750.sendpatchset@harold.local.valinux.co.jp> Return-path: In-Reply-To: <20060616075052.31276.7750.sendpatchset@harold.local.valinux.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Horms List-Id: xen-devel@lists.xenproject.org xenbus: CONFIG_PROC_FS is needed for xenbus_probe's proc entry Without CONFIG_PROC_FS, xenbus_probe cannot provide a proc entry, however the rest of its functionality appears to be unaffected. Signed-Off-By: Horms linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 4 ++++ 1 file changed, 4 insertions(+) --- x/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ x/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -926,6 +926,7 @@ void xenbus_probe(void *unused) } +#ifdef CONFIG_PROC_FS static struct file_operations xsd_kva_fops; static struct proc_dir_entry *xsd_kva_intf; static struct proc_dir_entry *xsd_port_intf; @@ -964,6 +965,7 @@ static int xsd_port_read(char *page, cha *eof = 1; return len; } +#endif static int __init xenbus_probe_init(void) @@ -1008,6 +1010,7 @@ static int __init xenbus_probe_init(void BUG_ON(err); xen_start_info->store_evtchn = alloc_unbound.port; +#ifdef CONFIG_PROC_FS /* And finally publish the above info in /proc/xen */ xsd_kva_intf = create_xen_proc_entry("xsd_kva", 0600); if (xsd_kva_intf) { @@ -1020,6 +1023,7 @@ static int __init xenbus_probe_init(void xsd_port_intf = create_xen_proc_entry("xsd_port", 0400); if (xsd_port_intf) xsd_port_intf->read_proc = xsd_port_read; +#endif } else xenstored_ready = 1; -- Horms http://www.vergenet.net/~horms/