Skip to content

Commit 3ab810f

Browse files
rddunlapgregkh
authored andcommitted
usb gadget: fix all Section mismatch warnings
Fix 41 occurrences of this type of Section mismatch warning in g_mass_storage, g_serial, g_cdc, g_multi, g_nokia, g_ether, g_ffs: (the 75 number reported earlier contained some duplicates.) WARNING: drivers/usb/gadget/g_mass_storage.o(.text+0x687a): Section mismatch in reference from the function fsg_bind() to the function .devinit.text:usb_ep_autoconfig() The function fsg_bind() references the function __devinit usb_ep_autoconfig(). This is often because fsg_bind lacks a __devinit annotation or the annotation of usb_ep_autoconfig is wrong. Also remove __devinit from usb_ep_autoconfig_reset() to prevent possible section mismatch problems with it. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent ad7c56f commit 3ab810f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/usb/gadget.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,8 @@ static inline void usb_free_descriptors(struct usb_descriptor_header **v)
890890
/* utility wrapping a simple endpoint selection policy */
891891

892892
extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *,
893-
struct usb_endpoint_descriptor *) __devinit;
893+
struct usb_endpoint_descriptor *);
894894

895-
extern void usb_ep_autoconfig_reset(struct usb_gadget *) __devinit;
895+
extern void usb_ep_autoconfig_reset(struct usb_gadget *);
896896

897897
#endif /* __LINUX_USB_GADGET_H */

0 commit comments

Comments
 (0)