[U-Boot] [PATCH 2/4] fw_env: fix build error
Joris OFFOUGA
offougajoris at gmail.com
Sat Aug 24 08:49:56 UTC 2019
Hi Pierre-Jean
It's work on my side.
Tested-by Joris Offouga <offougajoris at gmail.com>
Best Regards,
Joris Offouga
Le ven. 23 août 2019 à 23:04, Pierre-Jean Texier <pjtexier at koncepto.io> a
écrit :
> The following error appears:
>
> tools/env/fw_env.c:1149:25: error: lvalue required as unary ‘&’ operand
> rc = write(fd, &ENV_REDUND_OBSOLETE, sizeof(ENV_REDUND_OBSOLETE));
>
> Fixes: d3716dd ("env: Rename the redundancy flags")
>
> Signed-off-by: Pierre-Jean Texier <pjtexier at koncepto.io>
> ---
> tools/env/fw_env.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
> index 876bf2b..b8b936f 100644
> --- a/tools/env/fw_env.c
> +++ b/tools/env/fw_env.c
> @@ -1146,7 +1146,7 @@ static int flash_flag_obsolete(int dev, int fd,
> off_t offset)
> return rc;
> }
> ioctl(fd, MEMUNLOCK, &erase);
> - rc = write(fd, &ENV_REDUND_OBSOLETE, sizeof(ENV_REDUND_OBSOLETE));
> + rc = write(fd, ENV_REDUND_OBSOLETE, sizeof(ENV_REDUND_OBSOLETE));
> ioctl(fd, MEMLOCK, &erase);
> if (rc < 0)
> perror("Could not set obsolete flag");
> --
> 2.7.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>
More information about the U-Boot
mailing list