Skip to content

Commit

Permalink
USB: rndis: section mismatch fix
Browse files Browse the repository at this point in the history
This patch removes the following section mismatch warning,
by moving the function rndis_init() from .init.text to .text.

WARNING: vmlinux.o(.text+0x1aeca5a): Section mismatch in reference from the function rndis_bind_config() to the function .init.text:rndis_init()
The function rndis_bind_config() references
the function __init rndis_init().
This is often because rndis_bind_config lacks a __init
annotation or the annotation of rndis_init is wrong.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Henrik Kretzschmar authored and Greg Kroah-Hartman committed Sep 4, 2010
1 parent 08a3b3b commit 793f03a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/rndis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ static struct proc_dir_entry *rndis_connect_state [RNDIS_MAX_CONFIGS];
#endif /* CONFIG_USB_GADGET_DEBUG_FILES */


int __init rndis_init (void)
int rndis_init(void)
{
u8 i;

Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/gadget/rndis.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ int rndis_signal_disconnect (int configNr);
int rndis_state (int configNr);
extern void rndis_set_host_mac (int configNr, const u8 *addr);

int __devinit rndis_init (void);
int rndis_init(void);
void rndis_exit (void);

#endif /* _LINUX_RNDIS_H */

0 comments on commit 793f03a

Please sign in to comment.