WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH 4/4] xenbus: CONFIG_PROC_FS is needed for xenbus_prob

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 4/4] xenbus: CONFIG_PROC_FS is needed for xenbus_probe's proc entry
From: Horms <horms@xxxxxxxxxxxx>
Date: 2006年6月16日 16:51:13 +0900
Cc: Horms <horms@xxxxxxxxxxxx>
Delivery-date: 2006年6月16日 02:03:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060616075052.31276.7750.sendpatchset@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060616075052.31276.7750.sendpatchset@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 <horms@xxxxxxxxxxxx>
 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/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] [PATCH 3/4] xenbus: CONFIG_PROC_FS is required for the xenbus device , Horms
Next by Date: Re: [Xen-devel] HVM - BIOS serial console redirection? , Nick Craig-Wood
Previous by Thread: [Xen-devel] [PATCH 3/4] xenbus: CONFIG_PROC_FS is required for the xenbus device , Horms
Next by Thread: Re: [Xen-devel] HVM - BIOS serial console redirection? , Nick Craig-Wood
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /