[U-Boot] [PATCH] net: usb: r8152: fix "duplicate 'const' declaration specifier"
Simon Glass
sjg at chromium.org
Fri Jul 7 03:57:48 UTC 2017
On 25 June 2017 at 14:47, Philipp Tomsich
<philipp.tomsich at theobroma-systems.com> wrote:
> After upgrading to GCC 7.1, the duplicate const specifies in the
> r8152 driver trigger the following build warnings with buildman
> (observed on a 'buildman rockchip' test)::
> ../drivers/usb/eth/r8152.c:62:35: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
> static const struct r8152_version const r8152_versions[] = {
> ^~~~~
>
> This commit fixes these by removing the duplicate 'const' specifier
> from the declarations.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
>
> drivers/usb/eth/r8152.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list