From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [Xen-staging] [xen-unstable] linux: User-space grant table device. Date: Sat, 31 Mar 2007 09:46:11 -0600 Message-ID: <1175355971.13963.50.camel@bling> References: <200703311252.l2VCqLaT019711@latara.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200703311252.l2VCqLaT019711@latara.uk.xensource.com> 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 List-Id: xen-devel@lists.xenproject.org On Sat, 2007-03-31 at 13:52 +0100, Xen staging patchbot-unstable wrote: > --- a/linux-2.6-xen-sparse/drivers/xen/util.c Sat Mar 31 12:42:02 2007 +0100 > +++ b/linux-2.6-xen-sparse/drivers/xen/util.c Sat Mar 31 13:53:24 2007 +0100 > @@ -4,6 +4,23 @@ > #include > #include > #include > + > +struct class *get_xen_class(void) > +{ > + static struct class *xen_class; > + > + if (xen_class) > + return xen_class; > + > + xen_class = class_create(THIS_MODULE, "xen"); > + if (IS_ERR(xen_class)) { > + printk("Failed to create xen sysfs class.\n"); > + xen_class = NULL; > + } > + > + return xen_class; > +} > +EXPORT_SYMBOL_GPL(get_xen_class); Maybe this could be moved to a more common spot since only x86 builds with CONFIG_XEN_UTIL? Thanks, Alex -- Alex Williamson HP Open Source & Linux Org.