[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAdtpL5DbW4mdv2xtXCx3rpx+TKTdSLRZDOMj8o-ofsaQZnEwg@mail.gmail.com>
Date: Sat, 18 Dec 2021 00:58:55 +0100
From: Philippe Mathieu-Daudé <f4bug@...at.org>
To: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Adrian Schmutzler <freifunk@...ianschmutzler.de>,
"open list:BROADCOM NVRAM DRIVER" <linux-mips@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] MIPS: Octeon: Fix build errors using clang
On Thu, Dec 16, 2021 at 5:11 PM Tianjia Zhang
<tianjia.zhang@...ux.alibaba.com> wrote:
>
> A large number of the following errors is reported when compiling
> with clang:
>
> cvmx-bootinfo.h:326:3: error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int]
> ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_NULL)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cvmx-bootinfo.h:321:20: note: expanded from macro 'ENUM_BRD_TYPE_CASE'
> case x: return(#x + 16); /* Skip CVMX_BOARD_TYPE_ */
> ~~~^~~~
> cvmx-bootinfo.h:326:3: note: use array indexing to silence this warning
> cvmx-bootinfo.h:321:20: note: expanded from macro 'ENUM_BRD_TYPE_CASE'
> case x: return(#x + 16); /* Skip CVMX_BOARD_TYPE_ */
> ^
>
> Follow the prompts to use the address operator '&' to fix this error.
>
> Signed-off-by: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>
> ---
> arch/mips/include/asm/octeon/cvmx-bootinfo.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@...at.org>
Powered by blists - more mailing lists