i40e: Add kconfig dependency to ensure cmpxchg64() is available
authorBen Hutchings <ben@decadent.org.uk>
Thu, 15 Mar 2018 19:02:28 +0000 (19:02 +0000)
committerBastian Blank <waldi@debian.org>
Fri, 22 Jun 2018 09:50:22 +0000 (10:50 +0100)
i40e again uses cmpxchg64(), which isn't available in some 32-bit SMP
configurations.  It seems reasonable to expect that 40G hardware is
not used on 32-bit systems.

Fixes: 60f481b97038 ("i40e: change flags to use 64 bits")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name i40e-build-for-64-bit-targets-only.patch

drivers/net/ethernet/intel/Kconfig

index 1feb54b6d92e1e9f504f01ec076222ead66b59d7..bd44038c1a9bfef0dfb45b84e5222cba1f44cdf8 100644 (file)
@@ -215,6 +215,7 @@ config I40E
        tristate "Intel(R) Ethernet Controller XL710 Family support"
        imply PTP_1588_CLOCK
        depends on PCI
+       depends on 64BIT || X86_CMPXCHG64
        ---help---
          This driver supports Intel(R) Ethernet Controller XL710 Family of
          devices.  For more information on how to identify your adapter, go