* [PATCH] rndis: section mismatch fix
@ 2010-08-20 17:57 Henrik Kretzschmar
2010-08-20 19:34 ` David Brownell
0 siblings, 1 reply; 2+ messages in thread
From: Henrik Kretzschmar @ 2010-08-20 17:57 UTC (permalink / raw)
To: dbrownell
Cc: gregkh, davem, eric.dumazet, henne, tj, bniebuhr, linux-usb,
linux-kernel
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>
---
This patch is against Linus tree and tested.
drivers/usb/gadget/rndis.c | 2 +-
drivers/usb/gadget/rndis.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c
index 020fa5a..ee337f7 100644
--- a/drivers/usb/gadget/rndis.c
+++ b/drivers/usb/gadget/rndis.c
@@ -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;
diff --git a/drivers/usb/gadget/rndis.h b/drivers/usb/gadget/rndis.h
index c236aaa..907c330 100644
--- a/drivers/usb/gadget/rndis.h
+++ b/drivers/usb/gadget/rndis.h
@@ -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 */
--
1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] rndis: section mismatch fix
2010-08-20 17:57 [PATCH] rndis: section mismatch fix Henrik Kretzschmar
@ 2010-08-20 19:34 ` David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2010-08-20 19:34 UTC (permalink / raw)
To: dbrownell, Henrik Kretzschmar
Cc: gregkh, davem, eric.dumazet, henne, tj, bniebuhr, linux-usb,
linux-kernel
--- On Fri, 8/20/10, Henrik Kretzschmar <henne@nachtwindheim.de> wrote:
> This patch removes the following
> section mismatch warning,
Yeah, some folk have been aggressively adding bloat
to the gadget stack, starting by forcing init-only
code to stick in memory all the time, and this kind
of link bug is a symptom of code they've touched but
not fixed fully.
For now I don't see any option beyond accepting the
bloat. Part of it is caused by non-USB tools which
also promote bloat, ignoring the fact that embedded
Linux tends not to have MegaBytes of RAM (or flash)
to waste, in the way that most x86 systems do.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-20 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-20 17:57 [PATCH] rndis: section mismatch fix Henrik Kretzschmar
2010-08-20 19:34 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®