Skip to content

Commit d7889c2

Browse files
arndbgregkh
authored andcommitted
usb: gadget: select CONFIG_CRC32
Without crc32 support, this driver fails to link: arm-linux-gnueabi-ld: drivers/usb/gadget/function/f_eem.o: in function `eem_unwrap': f_eem.c:(.text+0x11cc): undefined reference to `crc32_le' arm-linux-gnueabi-ld: drivers/usb/gadget/function/f_ncm.o:f_ncm.c:(.text+0x1e40): more undefined references to `crc32_le' follow Fixes: 6d3865f ("usb: gadget: NCM: Add transmit multi-frame.") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210103214224.1996535-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7043e31 commit d7889c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/usb/gadget/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ config USB_CONFIGFS_NCM
265265
depends on NET
266266
select USB_U_ETHER
267267
select USB_F_NCM
268+
select CRC32
268269
help
269270
NCM is an advanced protocol for Ethernet encapsulation, allows
270271
grouping of several ethernet frames into one USB transfer and
@@ -314,6 +315,7 @@ config USB_CONFIGFS_EEM
314315
depends on NET
315316
select USB_U_ETHER
316317
select USB_F_EEM
318+
select CRC32
317319
help
318320
CDC EEM is a newer USB standard that is somewhat simpler than CDC ECM
319321
and therefore can be supported by more hardware. Technically ECM and

0 commit comments

Comments
 (0)