diff options
| author | 2021-12-16 17:50:14 +0800 | |
|---|---|---|
| committer | 2021-12-21 13:51:26 +0100 | |
| commit | 95339b70677dc6f9a2d669c4716058e71b8dc1c7 (patch) | |
| tree | 05b29c0ff9bf9a751352683e2168aafc33f2e66f /tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com | |
| parent | MIPS: OCTEON: add put_device() after of_find_device_by_node() (diff) | |
| download | linux-dev-95339b70677dc6f9a2d669c4716058e71b8dc1c7.tar.xz linux-dev-95339b70677dc6f9a2d669c4716058e71b8dc1c7.zip | |
MIPS: Octeon: Fix build errors using clang
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@linux.alibaba.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
