Isaku Yamahata
2009-Mar-27 02:46 UTC
[Xen-devel] [PATCH] pvusbback: fix the compilation error.
pvusbback: fix the compilation error. This patch fixes the following error. usbstub_exit() in linux/drivers/xen/usbback/usbstab.c is called by __init usbback_init() so that it can''t have __exit.> `usbstub_exit'' referenced in section `.init.text'' of drivers/built-in.o: defined in discarded section `.exit.text'' of drivers/built-in.oSigned-off-by: Isaku Yamahata <yamahata@valinux.co.jp> diff --git a/drivers/xen/usbback/usbstub.c b/drivers/xen/usbback/usbstub.c --- a/drivers/xen/usbback/usbstub.c +++ b/drivers/xen/usbback/usbstub.c @@ -432,7 +432,7 @@ out: return err; } -void __exit usbstub_exit(void) +void usbstub_exit(void) { driver_remove_file(&usbback_usb_driver.driver, &driver_attr_new_vport); -- yamahata _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Noboru Iwamatsu
2009-Mar-27 03:10 UTC
[Xen-devel] Re: [PATCH] pvusbback: fix the compilation error.
Thanks, I missed it. Noboru Isaku Yamahata wrote:> pvusbback: fix the compilation error. > > This patch fixes the following error. > usbstub_exit() in linux/drivers/xen/usbback/usbstab.c is called > by __init usbback_init() so that it can''t have __exit. > >> `usbstub_exit'' referenced in section `.init.text'' of drivers/built-in.o: defined in discarded section `.exit.text'' of drivers/built-in.o > > Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> > > diff --git a/drivers/xen/usbback/usbstub.c b/drivers/xen/usbback/usbstub.c > --- a/drivers/xen/usbback/usbstub.c > +++ b/drivers/xen/usbback/usbstub.c > @@ -432,7 +432,7 @@ out: > return err; > } > > -void __exit usbstub_exit(void) > +void usbstub_exit(void) > { > driver_remove_file(&usbback_usb_driver.driver, > &driver_attr_new_vport); > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel