]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ptp: ocp: Select CRC16 in the Kconfig.
authorJonathan Lemon <jonathan.lemon@gmail.com>
Tue, 26 Jul 2022 22:06:04 +0000 (15:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jul 2022 01:11:34 +0000 (18:11 -0700)
The crc16() function is used to check the firmware validity, but
the library was not explicitly selected.

Fixes: 7c5da5757ea4 ("ptp: ocp: Add firmware header checks")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: Vadim Fedorenko <vadfed@fb.com>
Link: https://lore.kernel.org/r/20220726220604.1339972-1-jonathan.lemon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/Kconfig

index 458218f88c5eb9cb80cb39864fbfb3f7384ce4b4..fe4971b65c6481d6c90b5c719528452843bf1601 100644 (file)
@@ -176,6 +176,7 @@ config PTP_1588_CLOCK_OCP
        depends on !S390
        depends on COMMON_CLK
        select NET_DEVLINK
+       select CRC16
        help
          This driver adds support for an OpenCompute time card.