Re: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive

From: Luc Van Oostenryck
Date: Fri Oct 18 2019 - 01:00:02 EST


On Thu, Oct 17, 2019 at 05:49:24PM -0700, Paul Walmsley wrote:
> sparse complains loudly when string literals associated with
> preprocessor directives are split into multiple, separately quoted
> strings across different lines:

...

> #ifndef __riscv_cmodel_medany
> -#error "setup_vm() is called from head.S before relocate so it should "
> - "not use absolute addressing."
> +#error "setup_vm() is called from head.S before relocate so it should not use absolute addressing."
> #endif

Using a blacslash should do the trick :
#error "blablablablablablablablablablablabla" \
"and blablabla again"
Or if need I cn fix Sparse if needed and desiable.

Best regards
-- Luc Van Oostenryck