public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb gadget: fix a section mismatch when compiling g_ffs with CONFIG_USB_FUNCTIONFS_ETH
@ 2012-03-11 13:31 Lothar Waßmann
  2012-03-11 13:51 ` Michal Nazarewicz
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Lothar Waßmann @ 2012-03-11 13:31 UTC (permalink / raw)
  To: linux-usb
  Cc: Felipe Balbi, Greg Kroah-Hartman, linux-kernel,
	Lothar Waßmann

commit 28824b18ac4705e876a282a15ea0de8fc957551f:
|Author: Michal Nazarewicz <m.nazarewicz@samsung.com>
|Date:   Wed May 5 12:53:13 2010 +0200
|
|    USB: gadget: __init and __exit tags removed
|
|    __init, __initdata and __exit tags have have been removed from
|    various files to make it possible for gadgets that do not use
|    the __init/__exit tags to use those.
obviously missed (at least) this case leading to a section mismatch in
g_ffs.c when compiling with CONFIG_USB_FUNCTIONFS_ETH enabled.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
---
 drivers/usb/gadget/f_subset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c
index c154064..3974bc9 100644
--- a/drivers/usb/gadget/f_subset.c
+++ b/drivers/usb/gadget/f_subset.c
@@ -404,7 +404,7 @@ geth_unbind(struct usb_configuration *c, struct usb_function *f)
  * Caller must have called @gether_setup().  Caller is also responsible
  * for calling @gether_cleanup() before module unload.
  */
-int __init geth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN])
+int geth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN])
 {
 	struct f_gether	*geth;
 	int		status;
-- 
1.7.2.5


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

end of thread, other threads:[~2012-03-21 14:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-11 13:31 [PATCH] usb gadget: fix a section mismatch when compiling g_ffs with CONFIG_USB_FUNCTIONFS_ETH Lothar Waßmann
2012-03-11 13:51 ` Michal Nazarewicz
2012-03-11 14:08 ` Lothar Waßmann
2012-03-12  5:21   ` Michal Nazarewicz
2012-03-21 10:04   ` Felipe Balbi
2012-03-21 11:10     ` Lothar Waßmann
2012-03-21 11:42       ` Felipe Balbi
2012-03-21 12:35         ` Lothar Waßmann
2012-03-21 14:06 ` [PATCH v2] " Lothar Waßmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox