[coreboot-gerrit] Patch set updated for coreboot: b6a63a3 elog: Fix typecast issues related to 64-bit compilation.

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Apr 9 14:58:31 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9424

-gerrit

commit b6a63a34b0281e0c7ea86405772bbb2d9d3a59cf
Author: Furquan Shaikh <furquan at google.com>
Date:   Wed Nov 12 16:19:37 2014 -0800

    elog: Fix typecast issues related to 64-bit compilation.
    
    BUG=chrome-os-partner:33764
    BRANCH=None
    TEST=Compiles successfully for ryu and nyan.
    
    Change-Id: I036fd42d5cd4b71bcb68eea0fdd9a4e1aa4711e9
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
    Original-Commit-Id: 7c3db3d5c8e00b6c273ae240da137062597749aa
    Original-Change-Id: I5e38966fe06aa3302a7c1b536f5ffd8bb22d4947
    Original-Signed-off-by: Furquan Shaikh <furquan at google.com>
    Original-Reviewed-on: https://chromium-review.googlesource.com/229413
    Original-Reviewed-by: Aaron Durbin <adurbin at chromium.org>
    Original-Commit-Queue: Furquan Shaikh <furquan at chromium.org>
    Original-Tested-by: Furquan Shaikh <furquan at chromium.org>
---
 src/drivers/elog/elog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c
index 8bc8a07..c96a923 100644
--- a/src/drivers/elog/elog.c
+++ b/src/drivers/elog/elog.c
@@ -108,7 +108,7 @@ static inline u32 elog_flash_address_to_offset(u8 *address)
 
 	return (u32)address - ((u32)~0UL - rom_size + 1);
 #else
-	return (u32)address;
+	return (u32)(uintptr_t)address;
 #endif
 }
 



More information about the coreboot-gerrit mailing list