]> git.baikalelectronics.ru Git - kernel.git/commit
w1: ds250x: Fix build error without CRC16
authorYueHaibing <yuehaibing@huawei.com>
Fri, 20 Sep 2019 06:03:18 +0000 (14:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 13:35:41 +0000 (15:35 +0200)
commit0dc089d69adf280239753446653e525e9e66dac0
tree56789e0326dbb6bcaf61ae79de8499c006685390
parentfbc244669700e154547993d6aba318619f9d3cc9
w1: ds250x: Fix build error without CRC16

If CRC16 is not set, building will fails:

drivers/w1/slaves/w1_ds250x.o: In function `w1_ds2505_read_page':
w1_ds250x.c:(.text+0x82f): undefined reference to `crc16'
w1_ds250x.c:(.text+0x90a): undefined reference to `crc16'
w1_ds250x.c:(.text+0x91a): undefined reference to `crc16'

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 8ddf2cdf6515 ("w1: add DS2501, DS2502, DS2505 EPROM device driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20190920060318.35020-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/Kconfig