diff options
author | Joel Stanley <joel.stanley@au1.ibm.com> | 2018-10-22 14:02:09 +1030 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-10-31 22:22:34 -0500 |
commit | de2d12b23dff680e97a4aa38bbd57fffbf1d39ab (patch) | |
tree | 52b2bf653eec39de0108183cfd69827a6473a50a /src/import/hwpf/fapi2/include | |
parent | e6f098dcfe477cb8348f637abc79eff34abb36f2 (diff) | |
download | talos-hostboot-de2d12b23dff680e97a4aa38bbd57fffbf1d39ab.tar.gz talos-hostboot-de2d12b23dff680e97a4aa38bbd57fffbf1d39ab.zip |
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 <joel.stanley@au1.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67802
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67805
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/include')
-rw-r--r-- | src/import/hwpf/fapi2/include/fapi2_hw_access.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/hwpf/fapi2/include/fapi2_hw_access.H b/src/import/hwpf/fapi2/include/fapi2_hw_access.H index cc24c3caf..1e8c012d9 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<K, V>& 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<K, V>& 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 // -------------------------------------------------------------------------- |