summaryrefslogtreecommitdiffstats
path: root/src/hwpf
diff options
context:
space:
mode:
authorSantosh Puranik <santosh.puranik@in.ibm.com>2016-10-28 02:24:27 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-10-31 15:54:15 -0400
commitd0b82bc3bc58e6382a70e18bc14f8f7bcdf165d0 (patch)
treec739291bc1a338294235f026d1b5be8c47b544dd /src/hwpf
parent4cf3d623b7e4148df3462431cbb21bd26dc095b5 (diff)
downloadtalos-sbe-d0b82bc3bc58e6382a70e18bc14f8f7bcdf165d0.tar.gz
talos-sbe-d0b82bc3bc58e6382a70e18bc14f8f7bcdf165d0.zip
Fix fapi2::Target creation on the SBE
-- Made plat target c'tor explicit so that fapi2::Target can't be constructed with a uint32_t Change-Id: Ibcfa3bffe41afdcef7256c3a65ffee5ef23fc76b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31943 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/hwpf')
-rw-r--r--src/hwpf/include/plat/plat_target.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hwpf/include/plat/plat_target.H b/src/hwpf/include/plat/plat_target.H
index bf7bcad3..14df2ab8 100644
--- a/src/hwpf/include/plat/plat_target.H
+++ b/src/hwpf/include/plat/plat_target.H
@@ -90,7 +90,7 @@ namespace fapi2
///
/// @param i_value Value to instantiate handle with
///
- plat_target_handle(uint32_t i_value = 0):value(i_value) {}
+ explicit plat_target_handle(uint32_t i_value = 0):value(i_value) {}
///
/// @brief Get the fapi2::TargetType for this target
@@ -210,7 +210,7 @@ namespace fapi2
{
static_assert((MULTICAST != true) || (K == TARGET_TYPE_PROC_CHIP),
"Only PROC_CHIP types can be multicast");
- plat_target_handle_t l_handle = 0;
+ plat_target_handle_t l_handle;
if(MULTICAST == true)
{
OpenPOWER on IntegriCloud