On 11/30/15 18:49, Ma, Maurice wrote:
> The patch looks good to me.   
> Reviewed-by: Maurice Ma <maurice...@intel.com>

Thanks. Committed to SVN as r19069, with both of our R-b tags.

Laszlo

> 
> Thanks
> Maurice
> 
> -----Original Message-----
> From: Laszlo Ersek [mailto:ler...@redhat.com] 
> Sent: Sunday, November 29, 2015 9:12 PM
> To: Zeng, Star; edk2-de...@ml01.01.org
> Cc: Ma, Maurice; Agyeman, Prince
> Subject: Re: [PATCH] CorebootPayloadPkg PlatformHookLib: Fix GCC build failure
> 
> On 11/30/15 02:22, Star Zeng wrote:
>> Add return status check to fix GCC build failure below.
>>
>> error: right-hand operand of comma expression has no effect 
>> [-Werror=unused-value] #define 
>> _PCD_SET_MODE_BOOL_S_PcdSerialUseMmio(Value)
>> ((_gPcd_BinaryPatch_PcdSerialUseMmio = (Value)), RETURN_SUCCESS)
>>
>> error: right-hand operand of comma expression has no effect 
>> [-Werror=unused-value] #define 
>> _PCD_SET_MODE_64_S_PcdSerialRegisterBase(Value)
>> ((_gPcd_BinaryPatch_PcdSerialRegisterBase = (Value)), RETURN_SUCCESS)
>>
>> http://article.gmane.org/gmane.comp.bios.edk2.devel/4949
>>
>> Cc: Maurice Ma <maurice...@intel.com>
>> Cc: Prince Agyeman <prince.agye...@intel.com>
>> Cc: Laszlo Ersek <ler...@redhat.com>
>> Contributed-under: TianoCore Contribution Agreement 1.0
>> Suggested-by: Laszlo Ersek <ler...@redhat.com>
>> Signed-off-by: Star Zeng <star.z...@intel.com>
>> ---
>>  CorebootPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c | 12 
>> +++++++++---
>>  1 file changed, 9 insertions(+), 3 deletions(-)
>>
>> diff --git 
>> a/CorebootPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c 
>> b/CorebootPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c
>> index 10fd332..8449997 100644
>> --- a/CorebootPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c
>> +++ b/CorebootPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c
>> @@ -45,11 +45,17 @@ PlatformHookSerialPortInitialize (
>>    }
>>  
>>    if (SerialRegAccessType == 2) { //MMIO
>> -    PcdSetBoolS (PcdSerialUseMmio, TRUE);
>> +    Status = PcdSetBoolS (PcdSerialUseMmio, TRUE);
>>    } else { //IO
>> -    PcdSetBoolS (PcdSerialUseMmio, FALSE);
>> +    Status = PcdSetBoolS (PcdSerialUseMmio, FALSE);  }  if 
>> + (RETURN_ERROR (Status)) {
>> +    return Status;
>> +  }
>> +  Status = PcdSet64S (PcdSerialRegisterBase, (UINT64) SerialRegBase);  
>> + if (RETURN_ERROR (Status)) {
>> +    return Status;
>>    }
>> -  PcdSet64S (PcdSerialRegisterBase, (UINT64) SerialRegBase);
>>  
>>    return RETURN_SUCCESS;
>>  }
>>
> 
> Looks good to me, although I'm not a maintainer for CorebootPayloadPkg.
> 
> Reviewed-by: Laszlo Ersek <ler...@redhat.com>
> 
> I've never built CorebootPayloadPkg, so I could report back about a 
> successful build only after this patch is committed, and Gerd's Jenkins 
> instance picks it up.
> 
> Thanks
> Laszlo
> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to