projects/linux·commit 98dbf5af

PCI: endpoint: Select CRC32 to fix test build error

98dbf5af · Randy Dunlap <[email protected]> · 2017-06-12 15:43:03 -05:00

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 <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Kishon Vijay Abraham I <[email protected]>
Commit
98dbf5af4fdd142f6184dbb4e4164a8d1850d526
Parents
449e2f9e

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/pci/endpoint/functions/Kconfigmodified+1−0View file

drivers/pci/endpoint/functions/Kconfig

View file
diff --git a/drivers/pci/endpoint/functions/Kconfig b/drivers/pci/endpoint/functions/Kconfig
index 175edad..2942066 100644
--- a/drivers/pci/endpoint/functions/Kconfig
+++ b/drivers/pci/endpoint/functions/Kconfig
@@ -5,6 +5,7 @@
config PCI_EPF_TEST
tristate "PCI Endpoint Test driver"
depends on PCI_ENDPOINT
+ select CRC32
help
Enable this configuration option to enable the test driver
for PCI Endpoint.