From d779bc19cdebcf7aa268bf72c74da3da9ee7a8cc Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Mon, 22 Oct 2018 14:02:09 +1030 Subject: fapi2: Use correct RingMode type Some compilers will warn when using 0 as it does not have the correct type. Instead use enum RingMode::RING_MODE_HEADER_CHECK which corresponds to 0. Change-Id: If1f6569297ce8a66755e08409c81f4649593ff6a Signed-off-by: Joel Stanley Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67802 Tested-by: Jenkins Server Tested-by: HWSV CI Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Matt K. Light Reviewed-by: Joseph J. McGill Reviewed-by: Daniel M. Crowell Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67803 Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta --- src/import/hwpf/fapi2/include/fapi2_hw_access.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/import/hwpf') diff --git a/src/import/hwpf/fapi2/include/fapi2_hw_access.H b/src/import/hwpf/fapi2/include/fapi2_hw_access.H index 50e0d485..ee415f3b 100644 --- a/src/import/hwpf/fapi2/include/fapi2_hw_access.H +++ b/src/import/hwpf/fapi2/include/fapi2_hw_access.H @@ -174,7 +174,7 @@ template< TargetType K, typename V > inline ReturnCode getRing(const Target& i_target, const scanRingId_t i_address, variable_buffer& o_data, - const RingMode i_ringMode = 0); + const RingMode i_ringMode = RING_MODE_HEADER_CHECK); /// @brief Read-modify-write a ring on a chip. /// @tparam K template parameter, passed in target. @@ -190,7 +190,7 @@ inline ReturnCode modifyRing(const Target& i_target, const scanRingId_t i_address, const variable_buffer& i_data, const ChipOpModifyMode i_modifyMode, - const RingMode i_ringMode = 0); + const RingMode i_ringMode = RING_MODE_HEADER_CHECK); #endif // -------------------------------------------------------------------------- -- cgit v1.2.1