Skip to content

Commit e599ee2

Browse files
vegardkuba-moo
authored andcommitted
net: arc: select CRC32
Fix the following build/link error by adding a dependency on the CRC32 routines: ld: drivers/net/ethernet/arc/emac_main.o: in function `arc_emac_set_rx_mode': emac_main.c:(.text+0xb11): undefined reference to `crc32_le' The crc32_le() call comes through the ether_crc_le() call in arc_emac_set_rx_mode(). [v2: moved the select to ARC_EMAC_CORE; the Makefile is a bit confusing, but the error comes from emac_main.o, which is part of the arc_emac module, which in turn is enabled by CONFIG_ARC_EMAC_CORE. Note that arc_emac is different from emac_arc...] Fixes: 775dd68 ("arc_emac: implement promiscuous mode and multicast filtering") Cc: Arnd Bergmann <[email protected]> Signed-off-by: Vegard Nossum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 847c6bd commit e599ee2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/arc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config ARC_EMAC_CORE
2121
depends on ARC || ARCH_ROCKCHIP || COMPILE_TEST
2222
select MII
2323
select PHYLIB
24+
select CRC32
2425

2526
config ARC_EMAC
2627
tristate "ARC EMAC support"

0 commit comments

Comments
 (0)