[v3,2/7] libpore: Build fix for p9_stop_api

Message ID 1503478082-11775-3-git-send-email-akshay.adiga@linux.vnet.ibm.com
State Superseded
Headers show

Commit Message

Akshay Adiga Aug. 23, 2017, 8:47 a.m.
Build fix for "declaration-after-statement".

Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
---
 libpore/p9_stop_util.C | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/libpore/p9_stop_util.C b/libpore/p9_stop_util.C
index 6fb8d67..c351b58 100644
--- a/libpore/p9_stop_util.C
+++ b/libpore/p9_stop_util.C
@@ -50,6 +50,7 @@  namespace stopImageSection
  */
 static StopReturnCode_t  isFusedMode( void* const i_pImage, bool* o_fusedMode )
 {
+    uint64_t cpmrCheckWord;
     StopReturnCode_t l_rc = STOP_SAVE_SUCCESS;
     *o_fusedMode = false;
 
@@ -66,7 +67,7 @@  static StopReturnCode_t  isFusedMode( void* const i_pImage, bool* o_fusedMode )
         }
 
 
-        uint64_t cpmrCheckWord = SWIZZLE_8_BYTE(pHomer->cpmrMagicWord);
+        cpmrCheckWord = SWIZZLE_8_BYTE(pHomer->cpmrMagicWord);
         cpmrCheckWord = cpmrCheckWord >> 32;
 
         if( CPMR_REGION_CHECK_WORD != cpmrCheckWord )