Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74541 )
Change subject: vendorcode/cavium: Fix additions to string ......................................................................
vendorcode/cavium: Fix additions to string
The clang compiler is confused about adding integers to strings. Adding brackets around the macros fixes this.
TEST: BUILD_TIMELESS=1 remains the same.
Change-Id: I2ea17322352d977bf0ec3ee71b14463fa218d07c Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c 1 file changed, 16 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/74541/1
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c index 9fecfcc..b912396 100644 --- a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c +++ b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-qlm.c @@ -58,7 +58,7 @@ */ const char *bdk_qlm_mode_to_cfg_str(bdk_qlm_modes_t mode) { -#define MODE_CASE(m) case m: return #m+13 +#define MODE_CASE(m) case (m): return (#m)+13 switch (mode) { MODE_CASE(BDK_QLM_MODE_DISABLED);