Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: endpoint: Select CRC32 to fix test build error

The PCI endpoint test driver uses crc32_le() so it should select
CRC32. Fixes this build error (when CRC32=m):

drivers/built-in.o: In function `pci_epf_test_cmd_handler':
pci-epf-test.c:(.text+0x2d98d): undefined reference to `crc32_le'

Fixes: 349e7a85b25f ("PCI: endpoint: functions: Add an EP function to test PCI")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Randy Dunlap and committed by
Bjorn Helgaas
98dbf5af 449e2f9e

+1
+1
drivers/pci/endpoint/functions/Kconfig
··· 5 5 config PCI_EPF_TEST 6 6 tristate "PCI Endpoint Test driver" 7 7 depends on PCI_ENDPOINT 8 + select CRC32 8 9 help 9 10 Enable this configuration option to enable the test driver 10 11 for PCI Endpoint.