This patch removes six section mismatch warnings (see bottom), by removing the __devinit from the prototypes of the two functions usb_ep_autoconfig() and usb_ep_autoconfig_reset(). Commit 28824b18ac4705e876a282a15ea0de8fc957551f removed the __init macro from these functions definitions, but left the prototypes in the state they were. It seems that an init-marco on a definition has more weight, than on a declaration. But when theres none on the definition, the declaration rules. WARNING: vmlinux.o(.text+0x1ae93d6): Section mismatch in reference from the function rndis_bind() to the function .devinit.text:usb_ep_autoconfig() The function rndis_bind() references the function __devinit usb_ep_autoconfig(). This is often because rndis_bind lacks a __devinit annotation or the annotation of usb_ep_autoconfig is wrong. Signed-off-by: Henrik Kretzschmar <henne@xxxxxxxxxxxxxxxx> --- This patch is against Linus tree and is tested. include/linux/usb/gadget.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index d3ef42d..f999f2e 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -894,8 +894,8 @@ static inline void usb_free_descriptors(struct usb_descriptor_header **v) /* utility wrapping a simple endpoint selection policy */ extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *, - struct usb_endpoint_descriptor *) __devinit; + struct usb_endpoint_descriptor *); -extern void usb_ep_autoconfig_reset(struct usb_gadget *) __devinit; +extern void usb_ep_autoconfig_reset(struct usb_gadget *); #endif /* __LINUX_USB_GADGET_H */ -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html