All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pvusbback: fix the compilation error.
@ 2009-03-27  2:46 Isaku Yamahata
  2009-03-27  3:10 ` Noboru Iwamatsu
  0 siblings, 1 reply; 2+ messages in thread
From: Isaku Yamahata @ 2009-03-27  2:46 UTC (permalink / raw)
  To: xen-devel; +Cc: n_iwamatsu

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);


-- 
yamahata

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pvusbback: fix the compilation error.
  2009-03-27  2:46 [PATCH] pvusbback: fix the compilation error Isaku Yamahata
@ 2009-03-27  3:10 ` Noboru Iwamatsu
  0 siblings, 0 replies; 2+ messages in thread
From: Noboru Iwamatsu @ 2009-03-27  3:10 UTC (permalink / raw)
  To: yamahata; +Cc: xen-devel

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);
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-27  3:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-27  2:46 [PATCH] pvusbback: fix the compilation error Isaku Yamahata
2009-03-27  3:10 ` Noboru Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.