[PATCH v1] net/idpf: avoid truncation of constant value
Praveen Shetty
praveen.shetty at intel.com
Wed Apr 9 14:54:40 CEST 2025
Truncation of constant value compiler warning was reported in clang/msvc
compiler for the VIRTCHNL2_CAP_OEM bit setting.This is due to 64 bit number
is initialized in a 32 bit enum.VIRTCHNL2_CAP_OEM capability is not used in
the present dpdk code,so removing this bit setting from the dpdk to avoid
the truncation.
Signed-off-by: Praveen Shetty <praveen.shetty at intel.com>
---
drivers/net/intel/idpf/base/virtchnl2.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/intel/idpf/base/virtchnl2.h b/drivers/net/intel/idpf/base/virtchnl2.h
index 3285a2b674..cf010c0504 100644
--- a/drivers/net/intel/idpf/base/virtchnl2.h
+++ b/drivers/net/intel/idpf/base/virtchnl2.h
@@ -265,8 +265,6 @@ enum virtchnl2_cap_other {
* if a reserved bit is set in a standard completion's tag.
*/
VIRTCHNL2_CAP_MISS_COMPL_TAG = BIT_ULL(20),
- /* This must be the last capability */
- VIRTCHNL2_CAP_OEM = BIT_ULL(63),
};
/**
--
2.34.1
More information about the dev
mailing list