[3/8] common/sfc_efx/base: add virtio build dependency

Message ID 20210311110325.3291203-4-andrew.rybchenko@oktetlabs.ru (mailing list archive)
State Changes Requested, archived
Delegated to: Ferruh Yigit
Headers
Series common/sfc_efx: prepare to introduce vDPA driver |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Andrew Rybchenko March 11, 2021, 11:03 a.m. UTC
  From: Vijay Kumar Srivastava <vsrivast@xilinx.com>

Add EFSYS_HAS_UINT64 build dependency on EFSYS_OPT_VIRTIO.
virtio features are represented as bitmask in 64-bit unsigned
integer.

Signed-off-by: Vijay Kumar Srivastava <vsrivast@xilinx.com>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
---
 drivers/common/sfc_efx/base/efx_check.h | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/drivers/common/sfc_efx/base/efx_check.h b/drivers/common/sfc_efx/base/efx_check.h
index 4e49163518..da6b682cbc 100644
--- a/drivers/common/sfc_efx/base/efx_check.h
+++ b/drivers/common/sfc_efx/base/efx_check.h
@@ -411,6 +411,9 @@ 
 # if !EFSYS_OPT_RIVERHEAD
 #  error "VIRTIO requires RIVERHEAD"
 # endif
+# if !EFSYS_HAS_UINT64
+#  error "VIRTIO requires UINT64"
+# endif
 #endif /* EFSYS_OPT_VIRTIO */
 
 #endif /* _SYS_EFX_CHECK_H */