[U-Boot] [PATCH] arm: zynq: Remove double const qualifier

Simon Glass sjg at chromium.org
Mon Nov 20 15:39:14 UTC 2017


Hi Michal,

On 10 November 2017 at 06:07, Michal Simek <michal.simek at xilinx.com> wrote:
> The patch fix these warnings:
> include/fpga.h:56:24: warning: type qualifiers ignored on function
> return type [-Wignored-qualifiers]
>  const fpga_desc *const fpga_get_desc(int devnum);
>                         ^
> include/fpga.h:65:24: warning: type qualifiers ignored on function
> return type [-Wignored-qualifiers]
>  const fpga_desc *const fpga_validate(int devnum, const void *buf,
>                         ^
> drivers/fpga/fpga.c:41:24: warning: type qualifiers ignored on function
> return type [-Wignored-qualifiers]
>  const fpga_desc *const fpga_get_desc(int devnum)
>                         ^
> drivers/fpga/fpga.c:58:24: warning: type qualifiers ignored on function
> return type [-Wignored-qualifiers]
>  const fpga_desc *const fpga_validate(int devnum, const void *buf,
>                         ^
> ...
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  common/image.c      | 2 +-
>  drivers/fpga/fpga.c | 8 ++++----
>  include/fpga.h      | 6 +++---
>  3 files changed, 8 insertions(+), 8 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>

Someone should comment those functions in fpga.h

Or perhaps it is moving to driver model soon?

Regards,
Simon


More information about the U-Boot mailing list