From: Peng Fan Date: Tue, 9 May 2017 02:32:03 +0000 (+0800) Subject: asm-generic: global_data: change timebase_l/h to unsigned int X-Git-Tag: v2017.07-rc1~294 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25112101d0af42cfc1ddf330d78757082965557a;p=u-boot asm-generic: global_data: change timebase_l/h to unsigned int Change type of timebase_l/h to unsigned int. >From lib/time.c: ((uint64_t)gd->timebase_h << 32) | gd->timebase_l; This piece code is based on that timebase_h and timebase_l are 32bits width, so change the type to unsigned int. Signed-off-by: Peng Fan Cc: Eddie Cai Cc: Jagan Teki Cc: York Sun Cc: "Robert P. J. Day" Cc: Michal Simek Cc: Tom Rini Reviewed-by: Simon Glass --- diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 1a77c982fa..51838b5ead 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -83,8 +83,8 @@ typedef struct global_data { #ifdef CONFIG_SYS_I2C_MXC void *srdata[10]; #endif - unsigned long timebase_h; - unsigned long timebase_l; + unsigned int timebase_h; + unsigned int timebase_l; #ifdef CONFIG_SYS_MALLOC_F_LEN unsigned long malloc_base; /* base address of early malloc() */ unsigned long malloc_limit; /* limit address */