[U-Boot] [PATCH] sandbox: Use the address in readl/writel() functions

Simon Glass sjg at chromium.org
Tue Oct 11 02:29:58 CEST 2016


On 1 October 2016 at 14:42, Simon Glass <sjg at chromium.org> wrote:
> At present these functions do not touch addr, which can raising warnings
> about unused variables.
>
> This fixes the following warnings:
>
> sandbox_spl defconfig
> drivers/core/regmap.c: In function ‘regmap_read’:
> drivers/core/regmap.c:125:12: warning: unused variable ‘ptr’ [-Wunused-variable]
>   uint32_t *ptr = map_physmem(map->base + offset, 4, MAP_NOCACHE);
>             ^
> drivers/core/regmap.c: In function ‘regmap_write’:
> drivers/core/regmap.c:134:12: warning: unused variable ‘ptr’ [-Wunused-variable]
>   uint32_t *ptr = map_physmem(map->base + offset, 4, MAP_NOCACHE);
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Fixes: 3bfb8cb4 (dm: regmap: Implement simple regmap_read & regmap_write)
> ---
>
>  arch/sandbox/include/asm/io.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

Applied to u-boot-dm


More information about the U-Boot mailing list