Attention is currently required from: Alexander Couzens.
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81381?usp=email )
Change subject: mb/lenovo/s230u: Fix compiling for 64bit mode ......................................................................
mb/lenovo/s230u: Fix compiling for 64bit mode
This fixes the warning when an integer is cast to a pointer of a different size.
Change-Id: Ide2827ec1b86dcbd804be9f3269c6c968cb4257b Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/mainboard/lenovo/s230u/ec.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/81381/1
diff --git a/src/mainboard/lenovo/s230u/ec.h b/src/mainboard/lenovo/s230u/ec.h index 273f58b..7ef06e2 100644 --- a/src/mainboard/lenovo/s230u/ec.h +++ b/src/mainboard/lenovo/s230u/ec.h @@ -5,7 +5,7 @@
void lenovo_s230u_ec_init(void);
-#define ECMM(x) (*((volatile u8 *)(CONFIG_EC_BASE_ADDRESS + x))) +#define ECMM(x) (*((volatile u8 *)(uintptr_t)(CONFIG_EC_BASE_ADDRESS + x))) #define ec_mm_read(addr) (ECMM(0x100 + addr)) #define ec_mm_write(addr, data) (ECMM(0x100 + addr) = data) #define ec_mm_set_bit(addr, bit) (ECMM(0x100 + addr) |= 1 << bit)