Skip to content

Commit 9973a43

Browse files
vegarddavem330
authored andcommitted
r8152: select CRC32 and CRYPTO/CRYPTO_HASH/CRYPTO_SHA256
Fix the following build/link errors by adding a dependency on CRYPTO, CRYPTO_HASH, CRYPTO_SHA256 and CRC32: ld: drivers/net/usb/r8152.o: in function `rtl8152_fw_verify_checksum': r8152.c:(.text+0x2b2a): undefined reference to `crypto_alloc_shash' ld: r8152.c:(.text+0x2bed): undefined reference to `crypto_shash_digest' ld: r8152.c:(.text+0x2c50): undefined reference to `crypto_destroy_tfm' ld: drivers/net/usb/r8152.o: in function `_rtl8152_set_rx_mode': r8152.c:(.text+0xdcb0): undefined reference to `crc32_le' Fixes: 9370f2d ("r8152: support request_firmware for RTL8153") Fixes: ac718b6 ("net/usb: new driver for RTL8152") Signed-off-by: Vegard Nossum <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4a3e0ae commit 9973a43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/usb/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ config USB_RTL8150
9999
config USB_RTL8152
100100
tristate "Realtek RTL8152/RTL8153 Based USB Ethernet Adapters"
101101
select MII
102+
select CRC32
103+
select CRYPTO
104+
select CRYPTO_HASH
105+
select CRYPTO_SHA256
102106
help
103107
This option adds support for Realtek RTL8152 based USB 2.0
104108
10/100 Ethernet adapters and RTL8153 based USB 3.0 10/100/1000

0 commit comments

Comments
 (0)